home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / perl / 7514 < prev    next >
Encoding:
Text File  |  1992-12-20  |  670 b   |  22 lines

  1. Newsgroups: comp.lang.perl
  2. Path: sparky!uunet!noc.near.net!nic.umass.edu!news.mtholyoke.edu!jbotz
  3. From: jbotz@mtholyoke.edu (Jurgen Botz)
  4. Subject: Re: Perl & manipulating large texts
  5. Message-ID: <BzG0rG.LoB@mtholyoke.edu>
  6. Sender: news@mtholyoke.edu (USENET News System)
  7. Organization: Mount Holyoke College
  8. References: <BzF1Cn.M1t@mtholyoke.edu>
  9. Date: Fri, 18 Dec 1992 06:59:39 GMT
  10. Lines: 10
  11.  
  12. Correction to my previous post:
  13.  
  14. In article <BzF1Cn.M1t@mtholyoke.edu> jbotz@mtholyoke.edu (Jurgen Botz) writes:
  15. >  $* = 1;
  16. >  while (/$pat/) {
  17. >    $match = $&;
  18. >    $_ = $_;       <<<<========= should of course be: $_ = $' 
  19. >    &do_something_with($match);
  20. >    $pat = &next_pat();
  21. >   }
  22.