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.
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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: How to find out a compressed file inside a script ?
by moritz (Cardinal) on Feb 19, 2009 at 15:34 UTC | |
by Bloodnok (Vicar) on Feb 19, 2009 at 15:54 UTC | |
Re: How to find out a compressed file inside a script ?
by lakshmananindia (Chaplain) on Feb 20, 2009 at 04:43 UTC | |
Re: How to find out a compressed file inside a script ?
by balakrishnan (Monk) on Feb 20, 2009 at 10:49 UTC | |
Re: How to find out a compressed file inside a script ?
by dwm042 (Priest) on Feb 19, 2009 at 17:08 UTC | |
Re: How to find out a compressed file inside a script ?
by prasadbabu (Prior) on Feb 19, 2009 at 15:35 UTC |
Back to
Seekers of Perl Wisdom