- or download this
use strict;
use warnings;
...
defined $parser->startrule($text)
or die "Can't match text";
- or download this
startrule: <rulevar: $lbrace_count>
- or download this
startrule: lbrace(2) { $lbrace = length $item[1] }
'hello'
rbrace(2)
- or download this
startrule: <rulevar: $lbrace_count>
...
lbrace: / [{] /xms
rbrace: / [}] /xms
- or download this
Unknown starting rule (Parse::RecDescent::namespace000001::rbrace(18))
+ called
at prd1.pl line 39.
- or download this
startrule: lbrace(2)
'hello'
...
--output:--
Unknown starting rule (Parse::RecDescent::namespace000001::rbrace(2))
+called
at prd1.pl line 39.
- or download this
use strict;
use warnings;
...
defined $parser->startrule($text)
or die "Can't match text";