Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

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

by chromatic (Archbishop)
on Dec 26, 2007 at 17:49 UTC ( [id://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");
    }