use File::LibMagic ':easy'; my $infile = $ARGV[0]; print $ARGV[0]," =", MagicFile($infile),"\n";
In reply to Re: Trying to write a subroutine to return if file is Text or Binary
by pvaldes
in thread Trying to write a subroutine to return if file is Text or Binary
by csorrentini
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |