in reply to Problem installing perl modules
I know I'm not answering your question directly, but I stumbled on these recently and thought they looked good: Free MSVC tools + Activestate to compile CPAN Modules A Practical Guide to Compiling C based Modules under ActiveState using Microsoft C++
Sorry, ActiveState made me think Windows. I now see you're on Solaris