in reply to Maintaining several perl versions on the same box

Further to Erez's comments above regarding changing the PATH, you can change the shebang line in scripts to the following:

#!/usr/bin/env perl

This will setup the shebang correctly in your scripts depending on which perl executable is found in the PATH

Small test on a NetBSD system:

[canker:~]$ ls -l test.pl -rwxr-xr-x 1 chris users 35 Sep 17 11:52 test.pl [canker:~]$ cat test.pl #!/usr/bin/env perl print "$]\n"; [canker:~]$

With normal system PATH:

[canker:~]$ ./test.pl 5.008008 [canker:~]$

Which an amended PATH:

[canker:~]$ PATH=/opt/perl-5.10.0/bin:$PATH ./test.pl 5.010000 [canker:~]$