in reply to
Re: check file type
in thread
check file type
You could read the first 3 bytes of the file and use a regex statement to determine type, MZ, PK, RAR etc.
Comment on
Re^2: check file type
In Section
Seekers of Perl Wisdom