Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: Unexpected result after localizing eval_error variable "$@" within "BEGIN" block

by chromatic (Archbishop)
on Dec 26, 2007 at 17:49 UTC ( #659088=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    eval q{
        local $@;
        call_undefined_subroutine_or_another_error("argument");
    };
    
  2. or download this
    eval q{
        call_undefined_subroutine_or_another_error("argument");
    };
    
  3. or download this
    BEGIN {
        call_undefined_subroutine_or_another_error("argument");
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2023-12-11 22:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (41 votes). Check out past polls.

    Notices?