You simply pass in a subref of code you want executed for each iteration, and let the object instance method do the iteration work, and call your subref as necessary.
"Man cannot live by bread alone...
He'd better have some goat cheese and wine to go with it!"
In reply to Re: Iterator as a Class or Object Method
by NetWallah
in thread Iterator as a Class or Object Method
by arc_of_descent
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |