in reply to Re^14: Reusing a complex regexp in multiple spots, escaping the regexp
in thread Reusing a complex regexp in multiple spots, escaping the regexp
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^16: Reusing a complex regexp in multiple spots, escaping the regexp
by LanX (Saint) on Apr 17, 2026 at 13:59 UTC | |
by dave_the_m (Monsignor) on Apr 17, 2026 at 14:52 UTC | |
by LanX (Saint) on Apr 17, 2026 at 15:13 UTC | |
by dave_the_m (Monsignor) on Apr 17, 2026 at 15:29 UTC | |
by LanX (Saint) on Apr 17, 2026 at 17:07 UTC | |
|
Re^16: Reusing a complex regexp in multiple spots, escaping the regexp
by LanX (Saint) on Apr 17, 2026 at 13:27 UTC | |
by choroba (Cardinal) on Apr 17, 2026 at 13:30 UTC |