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 reply to Re^2: flip-flop flop
by morgon
in thread flip-flop flop
by morgon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |