Indeed! I misunderstood the documentation.
use 5.010; # re features use strict; use warnings; for ('abcdef') { m{ (?(DEFINE) (?<x> (?<i1> . ) (?<i2> . ) (?{ '...' }) ) (?<y> (?<i1> . ) (?<i2> . ) (?{ print("($+{i1},$+{i2})") }) ) (?<z> (?<i1> . ) (?<i2> . ) (?{ '...' }) ) ) (?&y)+ }x; } print("\n");
In reply to Re^4: \g{-2} for inside (?{ ... }) (repeat)
by ikegami
in thread \g{-2} for inside (?{ ... })
by ikegami
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |