Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re^3: multi version perl

by salva (Abbot)
on Jun 06, 2013 at 11:48 UTC ( #1037441=note: print w/ replies, xml ) Need Help??

in reply to Re^2: multi version perl
in thread multi version perl

You should also arrange the path search for non-admin users to pick up the local perl instead of the system Perl


I can see that would make sense in certain environments, but I don't see it as a general rule.

Comment on Re^3: multi version perl
Replies are listed 'Best First'.
Re^4: multi version perl
by Utilitarian (Vicar) on Jun 06, 2013 at 13:15 UTC
    Presumably because other users will be using the scripts written for the local Perl version. (Though given it's Ubuntu I'm betting against there being other users ;)

    print "Good ",qw(night morning afternoon evening)[(localtime)[2]/6]," fellow monks."
Re^4: multi version perl
by space_monk (Chaplain) on Jun 06, 2013 at 14:36 UTC

    Well IIRC /usr/local/bin will normally precede /usr/bin in the path search order for non-admin users anyway, so I'm not proposing anything radical here.

    You should be encouraging users to use the installed perl as a default, not the system perl which should be only there to support existing admin tasks

    If you spot any bugs in my solutions, it's because I've deliberately left them in as an exercise for the reader! :-)

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2015-11-29 06:47 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (748 votes), past polls