in reply to Parsing perl syntax errors

What structure do you expect to see in the message part of the syntax error? As mentioned already, a standard tail is added:

<message text> at <script path> line <error line>. Execution of <script path> aborted due to compilation errors.

For run time errors the message format varies somewhat.

Premature optimization is the root of all job security