The stupid question is the question not asked | |
PerlMonks |
Trapping re 'debug'by diotalevi (Canon) |
on Jan 27, 2003 at 06:14 UTC ( [id://230137]=perlquestion: print w/replies, xml ) | Need Help?? |
diotalevi has asked for the wisdom of the Perl Monks concerning the following question: Hi there, I'm thinking about how to capture perl's parse tree for regular expressions without using Rx (mostly because I don't want to have to use pre-alpha perl + custom patches, partly because it's just an interesting question). The simplest test for this is closing the STDERR filehandle. This almost works except some text is still printed. The odd bit is if I try try tie STDERR then the tied methods are never even called (except CLOSE AND TIEHANDLE). So what gives? Amy I just totally out of luck here? Default output:
After closing STDERR
A tied trap fails to do anything useful
Back to
Seekers of Perl Wisdom
|
|