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
In reply to Re: archives etc
by coec
in thread archives etc
by CassJ
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |