PPI icon indicating copy to clipboard operation
PPI copied to clipboard

PPI::Tokenizer all_tokens() error nest

Open kryde opened this issue 7 years ago • 0 comments

When PPI::Tokenizer method all_tokens() finds an error, it sets $@ to a PPI::Exception which has its $err->message as another PPI::Exception. Is that meant to be so? It has the unhappy effect of meaning $err->message after all_tokens() is not textual but say "PPI::Exception=HASH(0x814b9704)".

Sample program below illustrating $err->message->message to get the text of the error.

foo.pl.txt

kryde avatar Dec 23 '17 22:12 kryde