home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / perl / 7364 next >
Encoding:
Internet Message Format  |  1992-12-11  |  640 b 

  1. Path: sparky!uunet!mcsun!sunic!ugle.unit.no!nuug!symbas!hans
  2. From: hans@symbas.UUCP (Hans Aafloy)
  3. Newsgroups: comp.lang.perl
  4. Subject: Delete until pattern match
  5. Message-ID: <3722@symbas.UUCP>
  6. Date: 11 Dec 92 18:46:09 GMT
  7. Reply-To: hans@symbas.lind.no
  8. Distribution: world
  9. Organization: Symbiotic Computer Systems A/S, Trondheim, Norway
  10. Lines: 11
  11.  
  12. I have some files in which I want to delete all lines until a
  13. certain pattern match. I know a couple of awkward ways to do it,
  14. ( using an array as temporary storage etc.) 
  15. but is there a quicker and more elegant solution ?
  16.  
  17. Thanx for any hints - via e-mail please.
  18.  
  19. Hans
  20.  
  21. hans@symbas.lind.no 
  22.  
  23.