|The stupid question is the question not asked|
Redirect STDOUT to a $variableby jeanluca (Deacon)
|on Aug 10, 2007 at 11:26 UTC||Need Help??|
jeanluca has asked for the
wisdom of the Perl Monks concerning the following question:
I would like to capture everyting thats printed into a variable ( so I can wrap this into XML later on).
This is my test script so far
Which doesn't work of course, perl now thinks $x contains a filename.
Any suggestions how to do this ?
UPDATE: Thanks a lot for the solutions/suggestions!!