- or download this
@listA = ('This=That', 'Some=Song');
@listB = ('Other=That', 'Corny=Song');
- or download this
$text =~ s/.+?=/$new_text=/;
- or download this
foreach (@listA, @listB) { # or just one of the two, whatever
# set $new_text to whatever you want
s/.+?=/$new_text=/;
}
- or download this
s/.+?(?==)/$new_text/;