On Mon, Mar 08, 2010 at 04:32:35PM +0100, Eric Veith1 wrote:
YAPH yet.another.perl.hac...@gmail.com wrote on 03/05/2010 06:57:19 PM:
It was the shell construc, eval '' if 0; (Will this ever
execute?)
and the
exec /bin/perl $0 ${1+$@};
that threw me off.
YAPH:
YAPH yet.another.perl.hac...@gmail.com wrote on 03/05/2010 06:57:19 PM:
It was the shell construc, eval '' if 0; (Will this ever
execute?)
and the
exec /bin/perl $0 ${1+$@};
that threw me off.
YAPH:
Actually, the first constructs gets read and interpreted by both shell and
perl.
Thanks Sanket,
So if this script is run on a Unix box, everything after the second #
would be treated as a comment, right?
#!/usr/bin/sh -- # -*- perl -*-
So, actually, it's #!/usr/bin/sh --
Isn't it?
Regards,
-Murali
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For
This isn't a Perl script. This is a shell script to be executed by
whichever shell lives at /usr/bin/sh on your system. It sets the shell
variables ORACLE_HOME and LD_LIBRARY PATH, and then calls /bin/perl to
re-evaluate the file. When the perl interpreter reads the file, it
ignores the
On Fri, 05 Mar 2010 11:42:34 -0500, Jay Savage wrote:
On Thu, Mar 4, 2010 at 2:12 PM, YAPH yet.another.perl.hac...@gmail.com
wrote:
I got a perl script that begins like this.
#!/usr/bin/sh -- # -*- perl -*-
eval 'ORACLE_HOME=/opt/oracle; export ORACLE_HOME;LD_LIBRARY_PATH=/opt/
On Sat, Mar 6, 2010 at 8:39 AM, Peter Scott pe...@psdt.com wrote:
On Fri, 05 Mar 2010 11:42:34 -0500, Jay Savage wrote:
On Thu, Mar 4, 2010 at 2:12 PM, YAPH yet.another.perl.hac...@gmail.com
wrote:
I got a perl script that begins like this.
#!/usr/bin/sh -- # -*- perl -*-
eval
Hi,
I got a perl script that begins like this.
-
#!/usr/bin/sh -- # -*- perl -*-
eval 'ORACLE_HOME=/opt/oracle; export
-Original Message-
From: sanket vaidya [mailto:sanket.vai...@patni.com]
Sent: Friday, March 05, 2010 5:36 PM
To: 'YAPH'
Subject: RE: Can anybody explain me what this shebang line is doing?
From: YAPH [mailto:yet.another.perl.hac...@gmail.com]
Sent: Friday, March 05, 2010 12:42 AM
On Thu, Mar 4, 2010 at 2:12 PM, YAPH yet.another.perl.hac...@gmail.com wrote:
I got a perl script that begins like this.
-
#!/usr/bin/sh -- #