On threaded perls it prints "doing arg" twice; on unthreaded, once.for my $i (1..2) { print "match\n" if "x1" =~ /x${print "doing arg\n"; \1}/o; }
Dave.
In reply to Re^15: Reusing a complex regexp in multiple spots, escaping the regexp
by dave_the_m
in thread Reusing a complex regexp in multiple spots, escaping the regexp
by ecm
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |