home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / perl / 7537 < prev    next >
Encoding:
Text File  |  1992-12-21  |  1.1 KB  |  28 lines

  1. Newsgroups: comp.lang.perl
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!usc!news.cerf.net!netlabs!lwall
  3. From: lwall@netlabs.com (Larry Wall)
  4. Subject: Re: programming challenge
  5. Message-ID: <1992Dec16.195415.22447@netlabs.com>
  6. Sender: news@netlabs.com
  7. Nntp-Posting-Host: scalpel.netlabs.com
  8. Organization: NetLabs, Inc.
  9. References: <1992Dec12.100131.11703@zooid.guild.org> <mcook.724208660@fendahl.dev.cdx.mot.com> <1992Dec15.160559.20946@black.ox.ac.uk>
  10. Date: Wed, 16 Dec 1992 19:54:15 GMT
  11. Lines: 15
  12.  
  13. In article <1992Dec15.160559.20946@black.ox.ac.uk> mbeattie@black.ox.ac.uk (Malcolm Beattie) writes:
  14. : My first attempt
  15. : was to complement the null SEARCHLIST and do tr///cs in order
  16. : to save using \0-\377 but the complement is done before the
  17. : searchlist gets copied in place of the null replacelist.
  18. : A little further playing turned up the short incantation
  19. : tr/*//c
  20. : which turns all the characters in $_ into asterisks. Probably
  21. : useless but rather neat, I thought.
  22.  
  23. Certainly useless when you get past version 4.019, since it was later
  24. changed to work the way you expected...
  25.  
  26. Larry
  27.