|
|
| Perl Monk, Perl Meditation | |
| PerlMonks |
Re: capturing command outputby JavaFan (Canon) |
| on Jan 25, 2012 at 11:17 UTC ( #949876=note: print w/ replies, xml ) | Need Help?? |
|
Considering all you do is run a command, and collect its output and errors, and return a string with said output and errors, I see no advantage of not using backticks. The backticks will also use the shell, but that doesn't really matter. Your fetch_cmd basically is a reimplementation of backticks.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||||||