Front page | perl.beginners |
Postings from December 2002
Re: what is this?
Thread Previous
From:
Tom Allison
Date:
December 6, 2002 03:43
Subject:
Re: what is this?
Message ID:
3DF08D2E.1090609@tacocat.net
simran wrote:
>>From the docs...
>
>
> -S makes perl use the PATH environment variable to search
> for the script (unless the name of the script starts
> with a slash). Typically this is used to emulate #!
> startup on machines that don't support #!, in the fol-
> lowing manner:
>
> #!/usr/bin/perl
> eval "exec /usr/bin/perl -S $0 $*"
> if $running_under_some_shell;
>
If I read this correctly the above code just surpasses the
#!/usr/bin/perl line in case it fails to find /usr/bin/perl and
conducts a $PATH search?
--
You mean you didn't *know* she was off making lots of little phone
companies?
Thread Previous