Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!samsung!munnari.oz.au!evan From: evan@cs.mu.OZ.AU (Evan Harris) Newsgroups: comp.lang.perl Subject: Perl bug? - tr///c Message-ID: Date: 26 Feb 91 04:45:39 GMT Sender: news@cs.mu.oz.au Reply-To: evan@mullauna.cs.mu.OZ.AU Distribution: comp Organization: Computer Science, University of Melbourne, Australia Lines: 12 The following code: $foo = '*foo'; $foo =~ tr/a-zA-Z//c; print "$foo\n"; does not produce the output (I) expected. Changing the * to (say) . produces a different (but similar) result. Platforms: Sun 3, 4; SunOS 4.1, 4.1.1; Perl 3.044, 4.0beta. --------------------------------8<-------------------------------- Evan Harris Dept. of Computer Science evan@cs.mu.OZ.AU The University of Melbourne, Australia