Just another Perl shrine | |
PerlMonks |
Re: executing commands and getting outputby bm (Hermit) |
on Sep 05, 2003 at 09:10 UTC ( [id://289139]=note: print w/replies, xml ) | Need Help?? |
Use backticks. This only captures STDOUT, so you should add shell redirection to capture any errors that appear on STDERR:
see perldoc -q capture -- bm
In Section
Seekers of Perl Wisdom
|
|