in reply to Re^2: Detecting if a program or file exists
in thread Detecting if a program or file exists
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";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Detecting if a program or file exists
by blazar (Canon) on Oct 18, 2005 at 07:06 UTC | |
|
Re^4: Detecting if a program or file exists
by ChrisS (Monk) on Oct 18, 2005 at 13:38 UTC | |
|
Re^4: Detecting if a program or file exists
by FM (Acolyte) on Oct 18, 2005 at 18:01 UTC | |
by Limbic~Region (Chancellor) on Oct 18, 2005 at 18:24 UTC |