in reply to Can I check if a loop's scope is entered for the first time?
You might also find it useful to take a look at how Var::Pairs
implements its each_kv() and each_pair()
iterators.
That technique could easily be generalized to any handle kind of user-defined iterator, not just the standard hash and array iterators.
Damian
That technique could easily be generalized to any handle kind of user-defined iterator, not just the standard hash and array iterators.
Damian
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Can I check if a loop's scope is entered for the first time? (Devel::Callsite)
by LanX (Saint) on May 06, 2018 at 19:59 UTC | |
by TheDamian (Vicar) on May 07, 2018 at 04:11 UTC | |
by TheDamian (Vicar) on May 07, 2018 at 05:03 UTC | |
by TheDamian (Vicar) on May 07, 2018 at 06:09 UTC | |
by TheDamian (Vicar) on May 07, 2018 at 13:58 UTC | |
|
In Section
Seekers of Perl Wisdom