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.
In reply to Re^4: Unexpected result after localizing eval_error variable "$@" within "BEGIN" block (bugs)
by bart
in thread Unexpected result after localizing eval_error variable "$@" within "BEGIN" block
by bdimych
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |