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
Back to
Seekers of Perl Wisdom