Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Why no $@ after eval? Bug?

by Chady (Priest)
on May 07, 2004 at 09:07 UTC ( [id://351400]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ perl -e 'eval { map { $_++ } 1 };'
    $ perl -e 'eval { map { $_++ } 1 }; print $@;'
    Modification of a read-only value attempted at -e line 1.
    $ perl -e '       map { $_++ } 1 '
    Modification of a read-only value attempted at -e line 1.
    
  2. or download this
    $ perl -e '$n = q/eval { die;}; print "1: $@"/; eval {$n}; print "2: $
    +@"'
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2024-04-26 07:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found