in reply to
Re^2: differentiate pdf and ppt
in thread
differentiate pdf and ppt
Sheesh, I would think that even any beginner in Perl should be able to tackle this. The tasks you have to do:
read the first few bytes of the file (at least 4 bytes) into a string
see if the string starts with '%PDF'
Comment on
Re^3: differentiate pdf and ppt
In Section
Seekers of Perl Wisdom