From owner-freebsd-questions@FreeBSD.ORG Wed Jun 23 09:52:11 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3BB5016A4CE for ; Wed, 23 Jun 2004 09:52:11 +0000 (GMT) Received: from mail.kepa.fi (mail.kepa.fi [62.142.22.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id AB2AB43D46 for ; Wed, 23 Jun 2004 09:52:10 +0000 (GMT) (envelope-from juho.vuori@kepa.fi) Received: from localhost (localhost [127.0.0.1]) by mail.kepa.fi (Postfix) with ESMTP id D30F2A67C; Wed, 23 Jun 2004 13:02:09 +0300 (EEST) Received: from mail.kepa.fi ([127.0.0.1]) by localhost (mail [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11707-05; Wed, 23 Jun 2004 13:01:57 +0300 (EEST) Received: from kepa.fi (helsinki.kepa.fi [62.142.22.210]) by mail.kepa.fi (Postfix) with ESMTP id 11B95A682; Wed, 23 Jun 2004 13:01:57 +0300 (EEST) Message-ID: <40D95288.1030102@kepa.fi> Date: Wed, 23 Jun 2004 12:51:04 +0300 From: Juho Vuori User-Agent: Mozilla Thunderbird 0.5 (X11/20040306) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Sex Maniac References: <20040623090857.48694.qmail@web21502.mail.yahoo.com> In-Reply-To: <20040623090857.48694.qmail@web21502.mail.yahoo.com> X-Enigmail-Version: 0.83.2.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-20030616-p7 (Debian) at kepa.fi cc: freebsd-questions@freebsd.org Subject: Re: How to turn your Perl programs into standalone executables X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Jun 2004 09:52:11 -0000 Hello, Sex Maniac wrote: >Hi just want to ask, if I have a perl program, and I >want to turn it into standalone executables/binary. >Question is how ? What programs/packages/ports I must >use ? > > First add a line #!/usr/bin/perl as the very first line of your perl program. Without indenting or anything. /usr/bin/perl is the default location for freebsd perl interpreter, but you should check, (run command 'which perl') In case your perl interpreter is located in /usr/local/bin/perl or something else, you must change the line accordingly. Then say chmod 755 myprogram.pl and your program runs nicely by just typing its name. Of course it has to be in your command path. From current working directory you can't run programs just like that, say ./myprogram.pl instead. Juho >Usually in windows98, I can use PerlApp to Turn your >Perl programs into standalone executables (.exe) > >I don't want my users can see the source program in >.pl >I want my source program is hidden from user and the >others administrators. So I need the executable >file/binary file only. > >Please help. > >Thx before > >Regards, > >-Galon Aerosmith- > > > > >__________________________________ >Do you Yahoo!? >New and Improved Yahoo! Mail - 100MB free storage! >http://promotions.yahoo.com/new_mail >_______________________________________________ >freebsd-questions@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-questions >To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > >