http://qs321.pair.com?node_id=659168


in reply to Re^3: Unexpected result after localizing eval_error variable "$@" within "BEGIN" block (bugs)
in thread Unexpected result after localizing eval_error variable "$@" within "BEGIN" block

Yes, this might mean forcing something like "; 1" onto the end of the BEGIN block's code before it is string-eval'd.
That should not be necessary as the ; 1; at the end of the code could be implied, i.e. automatically added by perl.