XP is just a number | |
PerlMonks |
Re: determine file type from data read from filehandleby choroba (Cardinal) |
on Aug 07, 2018 at 16:27 UTC ( [id://1220018]=note: print w/replies, xml ) | Need Help?? |
XLSX files are in fact zip files, so you can try to unzip them to test whether they are XLSX or not. The older XLS files are memory dumps of MSExcel, but they should still follow a pattern. Maybe try MIME::Detect or one of the other libraries mentioned in its SEE ALSO section.
In Section
Seekers of Perl Wisdom
|
|