No such thing as a small change | |
PerlMonks |
Re: System() or the likeby cider (Acolyte) |
on Sep 18, 2001 at 12:57 UTC ( [id://113069]=note: print w/replies, xml ) | Need Help?? |
Yes. I present thee with hoho_system(), it can be called with the silent option below to not additionally display output to stdout: Or, it can also be noisy, and may be executed like so: And for bonus points, I have included support for an optional global $logfile variable, which can be declared as the following optionally: # on with the show, cider@compulsion.org
Using arrays instead of scalars in multi-line responses would be advisable, and for such you may change the $returned_result references to @returned_result, and change the $returned_result assignment line to push @returned_result, "$_"; busunsl: switched pre tag to code tag. htmlism.
In Section
Seekers of Perl Wisdom
|
|