Well, that took longer than I expected. ;-)
I just uploaded a new release of Var::Pairs (version 0.003005)
that solves the problem of resetting an iterator on premature termination
of the surrounding loop. It does so by using Scope::Upper::reap()
to install a "destructor" for each iterator when execution leaves
the surrounding scope.
Take another look; I think it's likely this technique would also work for you.
Damian
In reply to Re^4: Can I check if a loop's scope is entered for the first time? (Devel::Callsite)
by TheDamian
in thread Can I check if a loop's scope is entered for the first time?
by LanX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |