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 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 firs

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

2010-03-08 Thread Eric Veith1
YAPH 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. However, Perl doesn't e

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: 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 additiona

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 wrote: > On Fri, 05 Mar 2010 11:42:34 -0500, Jay Savage wrote: > >> On Thu, Mar 4, 2010 at 2:12 PM, YAPH >> wrote: >> >>> I got a perl script that begins like this. >>> >>> >>> #!/usr/bin/sh -- # -*- perl -*- >>> >>> eval 'ORACLE_HOME=/opt/oracle; expor

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 > 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/ >> oracle/lib; export LD_L

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 wrote: > I got a perl script that begins like this. > > - > #!/usr/bin/sh -- # -*- perl -*- > > eval 'ORACLE

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 0

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 ORACLE_HOME;LD_LIBRARY_PA

Re: Shebang line

2004-02-21 Thread Tim
At 05:38 PM 2/20/04 -0500, you wrote: I am on Windows. Is it okay for me to put a unix style shebang line in my scripts? I would do this for the scripts that I intend to run across platforms. I think the shebang is mostly ignored on Windows. Ex: #!/usr/bin/perl -- To unsubscribe, e-mail

Re: Shebang line

2004-02-20 Thread Paul Johnson
On Fri, Feb 20, 2004 at 05:38:48PM -0500, Robert wrote: > I am on Windows. Is it okay for me to put a unix style shebang line in > my scripts? I would do this for the scripts that I intend to run across > platforms. I think the shebang is mostly ignored on Windows. > > Ex:

Re: Shebang line

2004-02-20 Thread WilliamGunther
Yep, in general Unix-style shebang line is fine on Windows. Perl doesn't ignore shebang, the switches are still looked at. Apache uses the shebang on Windows. -Will --- Handy Yet Cryptic Code. Just to Look Cool to Look at and try to decipher without ru

Shebang line

2004-02-20 Thread Robert
I am on Windows. Is it okay for me to put a unix style shebang line in my scripts? I would do this for the scripts that I intend to run across platforms. I think the shebang is mostly ignored on Windows. Ex: #!/usr/bin/perl -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands