in reply to #!$var/bin/perl
As has been said by others before, this is not going to work, since the shebang line is interpreted by the OS; however, everyone else so far also seems to have added that it's not perl that does this, which is something I think the original author of the question already understood, since he explicitely said that they had an environment variable set to perl's location.
The real reason why it still doesn't work is that the shell is not involved in interpreting that line, either; it's done by the OS itself.
And as far as the question itself is concerned, what keeps you from having perl in a standard location? Even if you have different OSes which have perl in different places by default, you could probably just roll your own perl packages that install to /opt/local or something similar - it'd probably can't hurt to have the same perl version with the same features built in and the same modules installed on all affected machines, anyway. :)
--
mowgli
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: #!$var/bin/perl
by Nkuvu (Priest) on Mar 13, 2003 at 17:26 UTC | |
by tye (Sage) on Mar 13, 2003 at 18:56 UTC | |
by Nkuvu (Priest) on Mar 13, 2003 at 21:05 UTC |