$str = 'aabbcc'; $str =~ s/a([^a]*)$/X$1/; print "$str\n"; $str = 'aabbcc'; substr($str, rindex($str, 'a'), 1) = 'X'; print $str;
In reply to Re: matching operator question
by TedPride
in thread matching operator question
by redss
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |