in reply to Re: capturing command output
in thread capturing command output
> Your fetch_cmd basically is a reimplementation of backticks.
Yes. But besides handling stderr it gives you another layer of indirection. And as the saying goes: there is not problem you cannot address with another layer of indirection ;-) Here it might actually be useful for logging the call (if it's generated) or storing the output for later inspection (it may not look as expected) or discard stderr or...
Yes. But besides handling stderr it gives you another layer of indirection. And as the saying goes: there is not problem you cannot address with another layer of indirection ;-) Here it might actually be useful for logging the call (if it's generated) or storing the output for later inspection (it may not look as expected) or discard stderr or...
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: capturing command output
by JavaFan (Canon) on Jan 25, 2012 at 15:59 UTC | |
by pklausner (Scribe) on Jan 26, 2012 at 15:01 UTC | |
by JavaFan (Canon) on Jan 26, 2012 at 15:07 UTC | |
by pklausner (Scribe) on Jan 26, 2012 at 16:21 UTC | |
by JavaFan (Canon) on Jan 26, 2012 at 18:00 UTC | |
|
In Section
Seekers of Perl Wisdom