On Wednesday, August 14, 2002, at 10:43 PM, Kee Hinckley wrote:
> Well, there's always this disgusting solution.
>
> ------------
> :
> eval exec '`which perl` -S $0 "$@"'
> if ($running_under_some_shell);
>
> print STDERR "Hello World\n";
> foreach $arg (@ARGV) {
> print STDERR "Arg: $arg\n";
> }
> -------------
I could be totally off base, but doesn't the env utility provide
functionality to solve this issue? I don't use env so I could be wrong,
but I -thought- that I had read somewhere that
#!/usr/bin/env perl
Would evaluate to the perl environment variable (which it is assumed
would point to your perl interpreter).
Can someone please correct me on this if I am wrong, I know that it
works for Python.
Erik
--
Erik Price
email: [EMAIL PROTECTED]
jabber: [EMAIL PROTECTED]