A
Alexander Huber
Hi,
Is there a shorter way of writing the following (regex only once on
right-hand side?), basically I want to apply the same regular expression
consecutively to multiple scalars:
$a =~ s/a/b/gs;
$b =~ s/a/b/gs;
$c =~ s/a/b/gs;
Thanks,
Alexander.
Is there a shorter way of writing the following (regex only once on
right-hand side?), basically I want to apply the same regular expression
consecutively to multiple scalars:
$a =~ s/a/b/gs;
$b =~ s/a/b/gs;
$c =~ s/a/b/gs;
Thanks,
Alexander.