if (length(`which $PRG`))
Use the core module IPC::Cmd for increased portability and functionality:
use IPC::Cmd 'can_run'; my $path = can_run($PRG);
In reply to Re^2: how to assign 'system' to a value, and eval it.
by Anonymous Monk
in thread SOLVED:how to assign 'system' to a value, and eval it.
by vincentaxhe
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |