Didn't know if that was even a keyword. Many thanks.
-Brett | [reply] |
Beware that exec never returns (if you didn't already know that), because it replaces your process with the new one.
If you want to make multiple "execs", you can use system.
Check out perlfunc for a list of all available functions and keywords in Perl.
bbfu
Seasons don't fear The Reaper.
Nor do the wind, the sun, and the rain.
We can be like they are.
| [reply] |
Just to complete chady and bbfu answers.
backticks quotes could be handy too...
(When you need to grab the produced output)
You might then use something like :
$string_to_process=`ping $host`;
(notes that variable are interpolated inside backticks)
"Only Bad Coders Badly Code In Perl" (OBC2IP)
| [reply] [d/l] |