smackdab has asked for the wisdom of the Perl Monks concerning the following question:
I want to eval() a small Perl "scriptlet" and capture stdout
(the script will print a few datapoints)
Being mostly a windows person, I never really got familiar with stdin/out/err...
I think eval() returns the value of the last statement...but the "script" print statements should be going to stdout...
Can I catch them? Is stdout just a never ending buffer? Can I just read it like a variable at anytime?
Thanks for any clarification on how this works
Being mostly a windows person, I never really got familiar with stdin/out/err...
I think eval() returns the value of the last statement...but the "script" print statements should be going to stdout...
Can I catch them? Is stdout just a never ending buffer? Can I just read it like a variable at anytime?
Thanks for any clarification on how this works
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: stdout question
by Fastolfe (Vicar) on Nov 26, 2001 at 02:09 UTC | |
Re: stdout question
by trantor (Chaplain) on Nov 26, 2001 at 02:17 UTC | |
(RhetTbull) Re: stdout question
by RhetTbull (Curate) on Nov 26, 2001 at 01:32 UTC | |
Re: stdout question
by dvergin (Monsignor) on Nov 26, 2001 at 01:33 UTC | |
Re: stdout question
by hotshot (Prior) on Nov 26, 2001 at 13:01 UTC |
Back to
Seekers of Perl Wisdom