Re: Can anybody explain me what this shebang line is doing?

2010-03-09 Thread Paul Johnson
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:

Re: Can anybody explain me what this shebang line is doing?

2010-03-08 Thread Eric Veith1
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.

Re: FW: Can anybody explain me what this shebang line is doing?

2010-03-07 Thread YAPH
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

Re: Can anybody explain me what this shebang line is doing?

2010-03-07 Thread YAPH
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

Re: Can anybody explain me what this shebang line is doing?

2010-03-06 Thread Peter Scott
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/

Re: Can anybody explain me what this shebang line is doing?

2010-03-06 Thread Jay Savage
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

Can anybody explain me what this shebang line is doing?

2010-03-05 Thread YAPH
Hi, I got a perl script that begins like this. - #!/usr/bin/sh -- # -*- perl -*- eval 'ORACLE_HOME=/opt/oracle; export

FW: Can anybody explain me what this shebang line is doing?

2010-03-05 Thread sanket vaidya
-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

Re: Can anybody explain me what this shebang line is doing?

2010-03-05 Thread Jay Savage
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 -- #