in reply to Re: Re: Parse::Lex error message
in thread Parse::Lex error message

$_[0] is a Parse::Token object.
The error message tells you that $_[0] is undefined, so it can't be a Parse::Token object.