in reply to Re^3: Can I check if a loop's scope is entered for the first time? (Devel::Callsite)
in thread Can I check if a loop's scope is entered for the first time?
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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: Can I check if a loop's scope is entered for the first time? (Devel::Callsite)
by TheDamian (Vicar) on May 07, 2018 at 06:09 UTC | |
by TheDamian (Vicar) on May 07, 2018 at 13:58 UTC | |
by LanX (Saint) on May 07, 2018 at 16:41 UTC | |
by Anonymous Monk on May 07, 2018 at 18:50 UTC | |
by TheDamian (Vicar) on May 08, 2018 at 14:48 UTC | |
by QM (Parson) on May 09, 2018 at 12:14 UTC |
In Section
Seekers of Perl Wisdom