[EMAIL PROTECTED] wrote:
> 
> Hello, All:

Hello,

> I need to check files to make sure that they are .gif, .jpg, or .png
> graphic files before processing them. How can I verify that?
> 
> e.g., In unix, the 'type' command returns the file's type.

In Unix the 'file' command returns the file's type.  In Unix file type
signatures are stored in the 'magic' file usually located at
/etc/magic.  These should be helpful:

http://search.cpan.org/author/KNOK/File-MMagic-1.15/MMagic.pm
http://search.cpan.org/author/SDAGUE/ppt-0.12/bin/file



John
-- 
use Perl;
program
fulfillment

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to