in reply to Parsing perl syntax errors

Probably not (at least not robustly). Perl’s output is not perl. It’s freeform text up to the author who wrote the line(s) of code in question. I doubt there is unity of style over the decades. Might be an interesting project though and with the right tests could result in an error output style guide that could be referenced as a best practice…

Replies are listed 'Best First'.
Re^2: Parsing perl syntax errors
by LanX (Saint) on Feb 15, 2016 at 17:15 UTC
    Line number and filename are appended, and that's what a regex in emacs is matching to make the message "clickable".

    If that's not enough, try splain

    Cheers Rolf
    (addicted to the Perl Programming Language and ☆☆☆☆ :)
    Je suis Charlie!