Nice. I like this function more than the array iterator classes I've seen.
The &$iter; syntax in the documentation is evil though. If you use it it will break things sooner or later. It's better to change them all to $iter->(). (See perlfaq7, "What's the difference between calling a function as &foo and foo()?")
ihb
See perltoc if you don't know which perldoc to read!
In reply to Re: Array iterator factory
by ihb
in thread Array iterator factory
by Roy Johnson
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |