in reply to Re: how to assign 'system' to a value, and eval it.
in thread SOLVED:how to assign 'system' to a value, and eval it.
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);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: how to assign 'system' to a value, and eval it.
by vincentaxhe (Scribe) on Jun 10, 2024 at 01:59 UTC |