$foo = 'aabbcc'; $foo =~ s/(.*)$_/$1X/ for qw(a b c); print $foo; STDOUT: aXbXcX [download]
In reply to Re: matching operator question by sh1tn in thread matching operator question by redss