Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

eval error stack

by shmem (Chancellor)
on Nov 11, 2015 at 21:13 UTC ( [id://1147503]=perlmeditation: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $foo = eval {
        my $bar = baz();
    ...
    }
    __END__
    baz failed!
    
  2. or download this
    Can't modify constant item in scalar assignment at (eval 1) line 1, at
    + EOF
    
  3. or download this
    sub baz {
        my $result = eval "1 = 2";
        die $@ if $@;
        $result;
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlmeditation [id://1147503]
Approved by kcott
Front-paged by kcott
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2024-04-24 11:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found