home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / perl / 7017 < prev    next >
Encoding:
Text File  |  1992-11-17  |  1.1 KB  |  30 lines

  1. Newsgroups: comp.lang.perl
  2. Path: sparky!uunet!panther!mothost!merlin.dev.cdx.mot.com!fendahl.dev.cdx.mot.com!mcook
  3. From: mcook@fendahl.dev.cdx.mot.com (Michael Cook)
  4. Subject: Re: sorting problem
  5. Message-ID: <mcook.722017696@fendahl.dev.cdx.mot.com>
  6. Sender: news@merlin.dev.cdx.mot.com (USENET News System)
  7. Nntp-Posting-Host: fendahl.dev.cdx.mot.com
  8. Organization: Motorola Codex, Canton, Massachusetts
  9. References: <1992Nov12.211431.6740@news.eng.convex.com> <1992Nov15.141016.4803@wisipc.weizmann.ac.il>
  10. Date: Tue, 17 Nov 1992 16:28:16 GMT
  11. Lines: 17
  12.  
  13. dov@menora.weizmann.ac.il (Dov Grobgeld) writes:
  14.  
  15. >tchrist@convex.COM (Tom Christiansen) writes:
  16. >: :
  17. >:
  18. >:     for (@data) { push(@idx, /^[^;]*;(.*)/) }
  19. >                                ^^^^^^^^^^^^
  20. >According to the book m// returnes true (1) or false ('').
  21.  
  22. Not always.
  23.  
  24.                   If used in a context that requires an array value, a pat-
  25.                   tern match returns an array consisting of the subexpres-
  26.                   sions matched by the parentheses in the pattern, i.e.
  27.                   ($1, $2, $3...).
  28.  
  29. Michael.
  30.