home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / lang / perl / 5052 < prev    next >
Encoding:
Text File  |  1992-07-30  |  1.0 KB  |  34 lines

  1. Newsgroups: comp.lang.perl
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!The-Star.honeywell.com!umn.edu!s6.math.umn.edu!rantapaa
  3. From: rantapaa@s6.math.umn.edu (Erik E. Rantapaa)
  4. Subject: Re: Seemingly Small Feature
  5. Message-ID: <rantapaa.712564719@s6.math.umn.edu>
  6. Sender: news@news2.cis.umn.edu (Usenet News Administration)
  7. Nntp-Posting-Host: s6.math.umn.edu
  8. Organization: University of Minnesota
  9. References: <1992Jul31.000738.15881@math.ucla.edu>
  10. Distribution: na
  11. Date: Fri, 31 Jul 1992 06:38:39 GMT
  12. Lines: 20
  13.  
  14. jbence@julia.math.ucla.edu (James K. Bence) writes:
  15.  
  16. >I would like to be able to reset the iterator that each,keys,values use
  17. >when I want, rather than being forced to go thru the whole array.  Is
  18. >this an unreasonable feature?
  19.  
  20. How about something like this:
  21.  
  22.   loop: {
  23.       for $x (@array) {
  24.       ...
  25.           redo loop if some condition;
  26.           ...
  27.       }
  28.   }
  29. --
  30.         Erik Rantapaa                   rantapaa@math.umn.edu
  31.  
  32.  
  33.  Life is a whim of several billion cells to be you for a while.
  34.