use warnings; use strict; my $test = 'x x x a x x x b x x x a x x x b x x x'; warn $test; (my $res = $test) =~ y/[ab]/[ba]/; warn $res;
$ perl tst.pl x x x a x x x b x x x a x x x b x x x at tst.pl line 5. x x x b x x x a x x x b x x x a x x x at tst.pl line 8.
In reply to Re: Multiple replacements with the exception of previously made replacements.
by Bloodnok
in thread Multiple replacements with the exception of previously made replacements.
by jthiel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |