in reply to 2 versions of perl

You could do one of the following:

  1. Use a shebang line at the beginning of your script to point to the perl you want: "#!/home/YOU/SOMEDIR/perl/bin/perl", or
  2. Edit your PATH to put /home/YOU/SOMEDIR/perl/bin ahead of wherever the system perl is, then use a shebang like "#!/usr/bin/env perl", or
  3. Run the script directly using your own perl: /home/YOU/SOMEDIR/perl/bin/perl foo.pl

For SOMEDIR, I usually use opt.

Edit: Note, I have a symlink in ~/opt/perl pointing to ~/opt/perl-5.10.0.

Note that this isn't really a Perl question per se, but rather just a question about how to tell your shell to find the perl you want it to find.

Edit: Whoops. Re-reading your question more carefully, looks like nefigah's tip is more like what you want. In that case, you're probably looking at doing:

cd ~/bin
ln -s ../SOMEDIR/perl-5.10.0/bin/perl perl5.10

This assumes you have your own ~/bin somewhere in your PATH.