home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / perl / 7645 < prev    next >
Encoding:
Internet Message Format  |  1992-12-31  |  939 b 

  1. Path: sparky!uunet!news.mentorg.com!sdl!not-for-mail
  2. From: tal@Warren.MENTORG.COM (Tom Limoncelli)
  3. Newsgroups: comp.lang.perl
  4. Subject: Re: Perl range operator
  5. Date: 31 Dec 1992 21:07:11 -0500
  6. Organization: Mentor Graphics -- IC Group
  7. Lines: 20
  8. Message-ID: <1i090fINNekb@jamal.Warren.MENTORG.COM>
  9. References: <1992Dec30.131700@se28.wg2.waii.com> <mcook.725814444@fendahl.dev.cdx.mot.com>
  10. NNTP-Posting-Host: jamal.warren.mentorg.com
  11. Keywords: range
  12.  
  13. In <mcook.725814444@fendahl.dev.cdx.mot.com> mcook@fendahl.dev.cdx.mot.com (Michael Cook) writes:
  14.  
  15.  
  16. >    @x = reverse(1..10);
  17. >or
  18. >    for (reverse $x..$y)
  19.  
  20. >BTW, that's the way it works in Ada, too:
  21.  
  22. What a load off my shoulders!  I was getting worried that Perl might
  23. not have enough Ada-like idioms.  Now my worries are over.
  24.  
  25. Sigh.
  26.  
  27. Tom "My last obnoxious post of 1992" Limoncelli
  28.  
  29. -- 
  30. Tom Limoncelli -- tal@warren.mentorg.com (work) -- tal@plts.uucp (play)
  31.  
  32. Unix is a trademark of, WHATT????
  33.