And what about another program that only has one executable file?FM seems to be under Windows, since he asks about Win32::DirSize. But I guess -x is *NIX-centric and I don't know how it would behave under redmondish environments. Maybe it would just evaporate silently to -f, but I would probably use directly the latter:my $binary = "/path/to/executable"; -x $binary or die "$binary not found";
-f or die "`$_' binary not found\n" for 'C:/path/to/executable';
In reply to Re^4: Detecting if a program or file exists
by blazar
in thread Detecting if a program or file exists
by FM
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |