- or download this
For example, $+{foo} is equivalent to $1 after the following match:
'foo' =~ /(?<foo>foo)/;
- or download this
sub {
/\G (?:
...
| ... (?{ code3(...); }) # and so on
)/gcx;
}
- or download this
sub parse {
my $input= shift;
...
&$lexer || die "Syntax error at '" . substr($_, pos, 10) . "'"
while pos < length;
}