Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: #!$var/bin/perl

by mowgli (Friar)
on Mar 13, 2003 at 17:09 UTC ( #242753=note: print w/ replies, xml ) Need Help??


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


Comment on Re: #!$var/bin/perl
Re: Re: #!$var/bin/perl
by Nkuvu (Priest) on Mar 13, 2003 at 17:26 UTC
    Or at the very least, symlink /usr/bin/perl to the installation of perl on that system.

      I'd just like to say Nkuvu++ and "Yes, do this, just as Larry intended!" Merely upvoting this was not enough. (:

                      - tye
        Heh, that's funny, because a minute after I posted this I got downvoted on it. :) (Of course, the downvoter didn't offer an explanation, so I ignored it.)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://242753]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2014-09-23 00:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (209 votes), past polls