Another quick thing to check is the path of the perl executable in you PATH variable. Try running from the command line with the full path of perl
/usr/local/bin/perl somescript.pl
and see if it fails with the same error message. If it does then likely you have the path for that version in your PATH first and need to put /usr/bin first.