uzzikie has asked for the wisdom of the Perl Monks concerning the following question:
use IO::Scalar; tie *STDOUT, 'IO::Scalar', \$a; @args = ("/bin/ls", "-al"); print system(@args); untie *STDOUT;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: redirect STDOUT from system() function
by snax (Hermit) on Aug 10, 2001 at 13:46 UTC | |
|
Re: redirect STDOUT from system() function
by ChOas (Curate) on Aug 10, 2001 at 12:24 UTC | |
by uzzikie (Sexton) on Aug 10, 2001 at 12:59 UTC | |
by chromatic (Archbishop) on Aug 10, 2001 at 22:53 UTC | |
|
Re: redirect STDOUT from system() function
by stefan k (Curate) on Aug 10, 2001 at 12:28 UTC |