[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]

Re: perlrun.pod lies :)



On Mon, Jan 10, 2000 at 12:17:59PM -0800, Gurusamy Sarathy wrote:
> >Why not add 
> >    || isSPACE(argv[0][2])
> >?  This way it may continue to work as before on the #! line.
> 
> The shebang line continues to work the way it did.
> 
>     % cat stest5005
>     #!/usr/bin/perl5.005 -ls -- glarch
>     print ${"-foo"};
>     % ./stest5005 --foo=bar
>     
>     % cat stestnew
>     #!./perl -ls -- glarch
>     print ${"-foo"};
>     % ./stestnew --foo=bar
>     bar
> 
> What's the problem?

I do not remember the details, but I think I have seen something
similar somewhere...  Some OSes process #! lines differently from
the others.  Just wanted to be extra defensive...

Ilya


References to:
Ilya Zakharevich <ilya@math.ohio-state.edu>
Gurusamy Sarathy <gsar@ActiveState.com>

[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]