O
Orion Mímameiðr
Is there a way to apple multiple regex operations to a single string
without writing them all out?
example.
suppose I have some variable $var and want it apple three regexs to
it. is there a faster way than
$var =~ s/foo/bar/;
$var =~ s/foo/bar/;
$var =~ s/foo/bar/;
without writing them all out?
example.
suppose I have some variable $var and want it apple three regexs to
it. is there a faster way than
$var =~ s/foo/bar/;
$var =~ s/foo/bar/;
$var =~ s/foo/bar/;