in reply to Output to an Excel Document

You can try to use DBD::Excel module and Spreadsheet family of modules.
Note that CPAN is your the best friend, except for Perl Monks ;-))
---> SV* sv_bless(SV* sv, HV* stash);