in reply to Re: differentiate pdf and ppt
in thread differentiate pdf and ppt

Hi bart, Can you please tell me how can i do that.

Replies are listed 'Best First'.
Re^3: differentiate pdf and ppt
by bart (Canon) on Sep 05, 2011 at 20:15 UTC
    Sheesh, I would think that even any beginner in Perl should be able to tackle this. The tasks you have to do:
    1. read the first few bytes of the file (at least 4 bytes) into a string
    2. see if the string starts with '%PDF'
Re^3: differentiate pdf and ppt
by Anonymous Monk on Sep 05, 2011 at 18:35 UTC