"be consistent" | |
PerlMonks |
How to find out a compressed file inside a script ?by balakrishnan (Monk) |
on Feb 19, 2009 at 15:26 UTC ( [id://745089]=perlquestion: print w/replies, xml ) | Need Help?? |
balakrishnan has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks, I written a script, that will get a text file as command line arguments. Sometimes, it can get compressed text file as an argument. Is there way to find out that the input file is compressed one ? I dont want to use the regular expression to check the extension of the file for finding out.
Back to
Seekers of Perl Wisdom
|
|