I've never used it (though I anticipate doing so soon), but it appears that
Spreadsheet::ParseExcel is capable of doing that. It seems a bit complex, so perhaps if you're new to Perl
Spreadsheet::ParseExcel::Simple may be a better choice. Ask me in a week or so what I think of them, as I'll be starting a project that may involve their use. If you're not familiar with how to install modules from CPAN, there is a nice FAQ on CPAN's
main site, and a PerlMonks Tutorial
here.