Eitan Adler wrote:
Did you know that Perl has built-in idioms to handle multiple file
manipulation:

#!/usr/bin/perl

Small nitpick, but one that irks me very much:
please keep this portable
#!/usr/bin/env perl

And you believe that to be portable?

http://lists-archives.org/git/719934-perl-shebangs-use-usr-bin-env-not-usr-bin-perl.html
http://www.rhinocerus.net/forum/lang-perl-misc/607444-how-put-usr-bin-env-perl-w-beginning-perlscript.html

More search results at:

http://www.google.com/search?hl=en&source=hp&q=%2Fusr%2Fbin%2Fenv+%2Fusr%2Fbin%2Fperl+perl+merlyn&aq=f


%ls -laod /usr/bin/perl
ls: /usr/bin/perl: No such file or directory

%ls -laod /usr/local/bin/perl
-rwxr-xr-x  2 root  wheel  - 4616 Oct  7 16:57:11 2010 /usr/local/bin/perl*

You may notice that /usr/local/bin/perl is hard linked to the actual current Perl program. You could also put a link (hard or soft) from the real perl to /usr/bin/perl. And which version of Unix/Linux puts perl in the wheel group?



John
--
Any intelligent fool can make things bigger and
more complex... It takes a touch of genius -
and a lot of courage to move in the opposite
direction.                   -- Albert Einstein

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to