develooper Front page | perl.beginners | Postings from December 2002

Re: what is this?

Thread Previous
Tom Allison
December 6, 2002 03:43
Re: what is this?
Message ID:
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 

Thread Previous Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About