in reply to
How to find out a compressed file inside a script ?
You could check for a magic number, for example by using
File::MMagic
or similar modules. Or you could just try to decode it, and treat it as uncompressed if the decoding fails.
Comment on
Re: How to find out a compressed file inside a script ?
Replies are listed 'Best First'.
Re^2: How to find out a compressed file inside a script ?
by
Bloodnok
(Vicar)
on Feb 19, 2009 at 15:54 UTC
...or, if on *NIX, first use
magic(1)
- the compression method just might be in
/etc/magic
... you never know:-)
A user level that continues to overstate my experience :-))
[reply]
[d/l]
[select]
In Section
Seekers of Perl Wisdom