Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Regarding B::Deparseby demerphq (Chancellor) |
on Oct 19, 2001 at 19:01 UTC ( [id://120015]=perlmeditation: print w/replies, xml ) | Need Help?? |
Hello all, The other day I was playing around with B::Deparse and its brethren as a debugging tool with a colleague. We were using it to have a look at the bug that I posted about in Funkyness with closures.... From there we started discussing modifiers and using this code (called as perl -MO=Deparse cond.pl) We got the following: Which is of course _wrong_. My colleague used this to supposedly _prove_ that the modifier form is identical to the non-modifier form. I disagreed but had nowhere to go until we appended the following lines to the original script and then uncommented them one at a time. Guess which ones fail Begin Update I should have been more specific. The point here is the original two loops have different scoping effects. But, I presume because the output of deparse is from a stage after these effects are determined. I dont know and I'd like to understand it better. End Update
To be honest any thoughts or comments at all about this stuff would be very welcome. And while I'm trawling the communal wisdom, any thought on using -d under NT would be apreciated as well. Somewhat incoherent post, sorry...
Yves
Back to
Meditations
|
|