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
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
>
> 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
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
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
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
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
-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
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
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
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:
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
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
13 matches
Mail list logo