in reply to Maintaining several perl versions on the same box
OTTOMH, two ways:
One: call the actual perl binary, i.e. %/usr/local/perl myprogram.pl
Two: temporarily reorder the $PATH variable in your shell, i.e.
(perl is system 5.8.8 perl)%echo $PATH /usr/bin/:/usr/local/bin
(perl is local 5.10 perl, as the shell looks for "perl" according to the order of folders in $PATH).%PATH=/usr/local/bin/:/usr/bin %echo $PATH /usr/local/bin/:/usr/bin
Actual syntax may varies with your flavour of *NIX/shell.
Stop saying 'script'. Stop saying 'line-noise'.
We have nothing to lose but our metaphors.
|
---|
In Section
Seekers of Perl Wisdom