in reply to archives etc
I tried to have a look at File::Type also but during the install it spat lots of errors so I didn't go any further.use warnings; use strict; my @Progs = ('gzip', 'bzip2'); my $File = <STDIN>; foreach (@Progs) { my $Output = `file $File`; chomp $Output; `$_ -d $File` if ($Output =~ $_); }
CC
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: archives etc
by eserte (Deacon) on Apr 21, 2004 at 13:04 UTC |