* Paul McCann <[EMAIL PROTECTED]>
> That would probably have been the use of the "env" utility: instead of
> 
> #!/usr/bin/perl 
> 
> or similar you make the first line of your scripts read
> 
> #!/usr/bin/env perl

Which is not really portable with command line options, due to how
env(1) works on OS X:

$ <test
#!/usr/bin/env perl -wl
print "hello world"

$ ./test
env: perl -wl: No such file or directory

A different trick that I have not tested on other unix systems (as I
just use '#!/usr/bin/perl') is to do the following:

$ <test
exec perl -wl <<EOF
print "hello world"

$ ./test 
hello world

Reply via email to