Please don't cross post



T.S. Ravi Shankar wrote:


Thanks Beau ..

This works !!

But the command line "/blah/blah/local/bin/perl" doesn't seem to override any
#! definition.


I am not sure what you mean by overriding the she-bang line. perl will treat the '#!' line only as a comment (she-bang processing is done by the kernel)
Can you clarify?



I tried some dirty definitions like #! /bin/opt, #! /opt/bin/opt etc & it didn't work and I was shown :


I guess /bin/opt and /opt/bin/opt are directories



Can't exec /opt/bin/opt at diamond.pl line 1.


Why ??

Thanks again,
Ravi





"Beau E. Cox" wrote:



----- Original Message -----
From: "T.S. Ravi Shankar" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, June 03, 2003 11:04 PM
Subject: Urgent : Can I override #! defn. through any command line option ??



Hi all :

My perl programme has a PERL path defined at its header through #!
/rem/depot/local/bin/perl
But I would like to run the same code with some other versions of PERL
that are in different paths.

Could I override the #! definition through any PERL command line option
or through any other means ??

Please advise.

Thanks in advance

Ravi Shankar



Ravi:

You and always execute your script by first specifying the
Perl executable:

/some/othet/perl/bin/perl script.pl

This completely bypasses the she-boom line in your
script.

Aloha => Beau;








-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to