I guess I am still misunderstanding you because it quite easy and very common to use a sub ref closing over a counter as an iterator for use with while. By way of example, see Algorithm::Combinatorics
I'm not seeing the difficulty you are alluding to, so perhaps you could clarify for me?
In reply to Re^11: use feature 'postderef'; # Postfix Dereference Syntax is coming in 5.20
by BrowserUk
in thread use feature 'postderef'; # Postfix Dereference Syntax is coming in 5.20
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |