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