Re: repeat through hash
Mark Holland <mark-rHpctHB9Aj9Wk0Htik3J/[email protected]> Fri, 21 Apr 2006 10:42:47 +0100
| Newsgroups | gmane.comp.lang.perl.modules.petal |
|---|---|
| Message-ID | <[email protected]> |
Jonathan Vanasco wrote: > i believe that in python you can map the repeat onto a generator or > iterator - i *think* you can figure out a way mimic that it in perl > using petal's method support > > ie, your repeat loop calls a function that returns the next item in > whatever sequence, and petal stops doing that at the end > > its pretty easy to do in python tal, but i'm not sure about the petal > version. I asked the list some time ago about going through cursors in petal. Jean-Michel suggested I tie the cursor to an array, which worked well. I'll have a look for my code but I think it's long gone. https://lists.webarch.co.uk/pipermail/petal/2003-February/000301.html