good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^2: flip-flop flopby morgon (Priest) |
on Mar 30, 2012 at 11:56 UTC ( [id://962586]=note: print w/replies, xml ) | Need Help?? |
So far all approaches seem to avoid the flip-flop. It would be very curious to see if there is a way to reset the flip-flop in some sane way (you probably need to create a new closure to use in the grep every time you call it or something). This was one of the very few times I tried to make use of the flip-flop and more or less every time I try to use it I have to abandon it in the end. Because of this global-state issue the flip-flop is pretty much useless to me - to the point where I think perl would be better off without it...
In Section
Seekers of Perl Wisdom
|
|