Is there a way to to collect the parser-generated errors and use them later on in my script?
• Answer by Damian There’s no “official” way (yet). A future release will allow you to create pluggable OO error handlers. At the moment the best you can do is: startrule: try_this | try_that | try_the_other | { ::do_something_with( $thisparser->{errors} ) } $thisparser->{errors} will contain a reference to an array-of-arrays, where each inner array contains the error message and the line number it occurred at.