I recently did this on Solaris 7. The best solution I found was to build Perl-stable from source. Using the gcc 3.4 package from sunfreeware.com, I had no problems. I put the new distribution in /usr/local, to avoid overwriting the stock install. I really don't like the idea of having two Perl's in the PATH. I know there is a lot of hype about breaking programs when overwriting the default install, but I don't see how. You can always place a sym link to perl in /usr/bin.
in reply to Solaris, Perl 5.8 and use 5.005