Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

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. :)


Replies are listed 'Best First'.
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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://242753]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2017-12-18 07:37 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (473 votes). Check out past polls.