home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / perl / 5559 < prev    next >
Encoding:
Text File  |  1992-08-27  |  1.5 KB  |  39 lines

  1. Newsgroups: comp.lang.perl
  2. Path: sparky!uunet!cs.utexas.edu!sdd.hp.com!ux1.cso.uiuc.edu!news.cso.uiuc.edu!ux2.cso.uiuc.edu!ejk
  3. From: ejk@ux2.cso.uiuc.edu (Ed Kubaitis - CCSO)
  4. Subject: Re: 4.035 bug or feature...why does this run?
  5. References:  <1992Aug27.171036.28995@odin.corp.sgi.com>
  6. Message-ID: <BtnMC5.51s@news.cso.uiuc.edu>
  7. Sender: usenet@news.cso.uiuc.edu (Net Noise owner)
  8. Organization: University of Illinois - Urbana
  9. Date: Thu, 27 Aug 1992 18:07:15 GMT
  10. Lines: 27
  11.  
  12. stantz@sierra.corp.sgi.com (Mark Stantz) writes:
  13.   |...
  14.   |foreach $item (@s2) {
  15.   |  push(@u, $item) unless (grep(($_ eq $item), @s1))        # Huh?
  16.   |}
  17.   |...
  18.   |    Why does this program run when there is no ';' at the end of 
  19.   |the line indicated with the comment?  Apparently it works fine under 4.035, 
  20.   |but doesn't run under 4.019 or earlier versions.  I would have expected the 
  21.   |'doesn't run' behavior in 4.035 as well.
  22.   |
  23.   |    What's the story behind this?
  24.  
  25. Feature. From "perl 4.0 patch #20":
  26.  
  27.    ENHANCEMENTS
  28. -->Subject: relaxed requirement for semicolon at the end of a block
  29.    Subject: scalar keys %array now counts keys for you
  30.    Subject: added ... as variant on ..
  31.    Subject: get*by* routines now return something useful in a scalar context
  32.    Subject: form feed for formats is now specifiable via $^L
  33.    Subject: PERLLIB now supports multiple directories
  34.    Subject: paragraph mode now skips extra newlines automatically
  35.  
  36. ----------------------------------
  37. Ed Kubaitis (ejk@ux2.cso.uiuc.edu)
  38. Computing & Communications Services Office - University of Illinois, Urbana
  39.