Tested on Perl 5.6.1 and it works. Depending on your Perl version you need to add the sub STORE {} to no get errors.

Graciliano M. P.
"Creativity is the expression of liberty".


In reply to Re^3: Challenge: Capturing stdout from a function call. by gmpassos
in thread Challenge: Capturing stdout from a function call. by BUU

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":