in reply to
check file type
File::Type
(uses file magic)
- Ant
- Some of my best work - (
1
2
3
)
Comment on
Re: check file type
Replies are listed 'Best First'.
Re^2: check file type
by
nemo
(Sexton)
on Aug 20, 2007 at 18:57 UTC
You could read the first 3 bytes of the file and use a regex statement to determine type, MZ, PK, RAR etc.
[reply]
In Section
Seekers of Perl Wisdom