in reply to Re^2: How to make this substitutions without splitting the strings? (tr/// behavior)
in thread How to make this substitutions without splitting the strings?
Do you know of any documentation of this "leftmost match" feature in the tr/// built-in?From perlop:
"If multiple transliterations are given for a character, only the first one is used:
tr/AAA/XYZ/
will transliterate any A to X."
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: How to make this substitutions without splitting the strings? (tr/// behavior)
by AnomalousMonk (Archbishop) on Aug 01, 2014 at 05:34 UTC |
In Section
Seekers of Perl Wisdom