| [reply] |
> a better solution might even exist outside of perl.
Note that other languages might have similar regex syntax to Perl, but the implementation is definitely different, so profiling/benchmarking it doesn't really help if you're going to use the regex in Perl.
map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
| [reply] [d/l] |
Depending on what you mean by "profiling" you can inject Perl (?{code}) snippets into your regex to record the current time. (IMHO that's the most likely approach a third party profiler would take)
But please be aware that you might get a Heisenbug situation then, because your snippet was hindering some of the many internal heuristics or optimizations.
Looking into re debug mode before and after those injections is always a good approach.
| [reply] [d/l] [select] |