in reply to Re: compressing VERY LARGE files
in thread compressing VERY LARGE files

Many linux boxes also have the which command, so this could be simplified to,
my $prog; for (qw/bzip2 gzip compress/) { chomp($prog = qx|which $_|); last if $prog; } print "Found: $prog\n";

Replies are listed 'Best First'.
Re: Re: Re: compressing VERY LARGE files
by RMGir (Prior) on Sep 27, 2002 at 13:52 UTC
    As gnu@perl said in his original post, the compression binaries may not be in the user's path.

    which tells you where a program lies on your path, "which" may not help in this case... It could be added as an additional test, though.
    --
    Mike