Absolutely right -- I knew that my approach had flaws, but the initial question was so vague I figured I'd throw my solution into the mix. The OP never explained why this feature was necessary .. it sounds more like a feature looking for a use case to me.
In reply to Re^3: Perl's feature to determine, in current point of loop, that this is the last one?
by talexb
in thread Perl's feature to determine, in current point of loop, that this is the last one?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |