Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^4: Unexpected result after localizing eval_error variable "$@" within "BEGIN" block (bugs)

by bart (Canon)
on Dec 27, 2007 at 09:01 UTC ( [id://659168]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://659168]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2024-04-25 06:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found