And what about another program that only has one executable file?# see perldoc -f require for more info my $class = 'Win32::DirSize'; eval "require $class" or die "Couldn't load $class: $@";
my $binary = "/path/to/executable"; -x $binary or die "$binary not found";
In reply to Re^3: Detecting if a program or file exists
by mattk
in thread Detecting if a program or file exists
by FM
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |