in reply to Pattern Matching Hell.

I said tr was good to use. as per posts below, in this instance s is better.

Azatoth a.k.a Captain Whiplash

Make Your Die Messages Full of Wisdom!
Get YOUR PerlMonks Stagename here!
Want to speak like a Londoner?

Replies are listed 'Best First'.
Re: Re: Pattern Matching Hell.
by davorg (Chancellor) on Apr 04, 2001 at 15:37 UTC

    tr is for replacing single characters with other single characters (or, maybe, deleting characters). The substitution operator s/// is much more likely to be useful here.

    --
    <http://www.dave.org.uk>

    "Perl makes the fun jobs fun
    and the boring jobs bearable" - me