You should check your path statement. It sounds like you
may have different versions of the perl binary floating
around. I recently upgraded a Solaris 7.0 to perl 5.6.1
and found that the Web Administrator had put copies of the
older version in /bin and /usr/bin as well as having copies
in /usr/local/bin and /usr/local.