home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / perl / 7743 < prev    next >
Encoding:
Text File  |  1993-01-11  |  778 b   |  27 lines

  1. Newsgroups: comp.lang.perl
  2. Path: sparky!uunet!spool.mu.edu!think.com!rpi!batcomputer!munnari.oz.au!metro!usage!news
  3. From: cameron@cs.unsw.oz.au
  4. Subject: bug with "last"
  5. Message-ID: <cameron-930111155241-1-06364@fuligin>
  6. Sender: news@usage.csd.unsw.OZ.AU
  7. Nntp-Posting-Host: fuligin.spectrum.cs.unsw.oz.au
  8. Reply-To: cameron@cs.unsw.oz.au
  9. Organization: CS&E Computing Facility, Uni Of NSW, Oz
  10. Errors-To: cameron@cs.unsw.oz.au
  11. Date: Mon, 11 Jan 1993 04:53:02 GMT
  12. Return-Receipt-To: cameron@cs.unsw.oz.au
  13. Lines: 12
  14.  
  15. This loop runs three times.
  16.  
  17.     for (('a','b','c'))
  18.         { print "\$_ is '$_'\n";
  19.           { last; }
  20.         }
  21.  
  22. Surely it shouldn't? This is perl 4.035.
  23.     - Cameron Simpson
  24.       cameron@cse.unsw.edu.au, DoD 0743
  25. --
  26. You can lead a horse's ass to knowledge, but you can't make him think.
  27.