Thanks Beau ..

This works !!

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

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

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;

Reply via email to