Problems? Is your data what you think it is? | |
PerlMonks |
Re^4: How to grab Parse::RecDescent error output in a variable?by Pic (Scribe) |
on Sep 15, 2008 at 17:12 UTC ( [id://711504]=note: print w/replies, xml ) | Need Help?? |
The reason local breaks it is that local replaces the variable in that lexical scope, and the references to P::RD::ERROR in P/RD.pm are outside the lexical scope of the local invocation (I think). It's an interesting question though, and IMO the right solution would be to get a patch committed for P::RD that allows the user to specify an alternative filehandle for error output.
In Section
Seekers of Perl Wisdom
|
|