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.
  • Comment on Re^4: Unexpected result after localizing eval_error variable "$@" within "BEGIN" block (bugs)
  • Download Code

Replies are listed 'Best First'.
Re^5: Unexpected result after localizing eval_error variable "$@" within "BEGIN" block (bugs)
by demerphq (Chancellor) on Dec 27, 2007 at 14:40 UTC

    I think that tye meant that perl would have to automatically add it to the end....

    ---
    $world=~s/war/peace/g