develooper Front page | perl.perl5.porters | Postings from February 2012

Re: Shebang line parsing mystery

Thread Previous | Thread Next
From:
Zefram
Date:
February 1, 2012 07:44
Subject:
Re: Shebang line parsing mystery
Message ID:
20120201154438.GD32333@lake.fysh.org
Chas. Owens wrote:
>It is also important for people who use #!/bin/env perl

No.  "#!/bin/env perl" doesn't trigger perl's magic, because perl is
mentioned on the shebang line.  If the magic did apply, perl would feed
the script to /bin/env and you'd get an infinite loop.

-zefram

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About