Benchmark: running s///, substr, each for at least 1 CPU seconds... runloop unable to compile 'my $c = $orig; $c =~ {}{XXXX}g;': syntax error at (eval 2) line 1, near "}{XXXX" syntax error at (eval 2) line 1, near "} }" code: sub { for (1 .. 1) { local $_; package main; my $c = $orig; $c =~ {}{XXXX}g;;} } at test_bench.pl line 9