- or download this
use Regexp::MatchContext -vars;
...
print "After: $POSTMATCH\n";
$MATCH = 2 * $MATCH; # substitute into original $str
- or download this
Rate regex context at_minus matchvars
regex 17271/s -- -22% -66% -84%
context 22239/s 29% -- -56% -79%
at_minus 50420/s 192% 127% -- -53%
matchvars 107527/s 523% 384% 113% --
- or download this
Rate regex context at_minus
regex 17544/s -- -24% -69%
context 23112/s 32% -- -60%
at_minus 57361/s 227% 148% --
- or download this
#!/usr/bin/perl
use strict;
...
},
}
);