Subject: | Parse::Token silently ignores calls to invalid methods |
Parse::Token silently ignores calls to invalid methods.
This makes it very difficult to track down bugs, e.g. incorrectly using
$_[0] -> start('CONDITION') instead of $_[0] -> lexer -> start('CONDITION').
Example:
perl -MParse::Token -wle 'use strict; my $token = Parse::Token->new(qw(a
a)); $token->this_should_croak';