Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: differentiate pdf and ppt

by sarvan (Sexton)
on Sep 05, 2011 at 18:21 UTC ( #924282=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://924282]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2023-09-26 20:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?