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

Re: what does "$@" mean?

by gryphon (Abbot)
on Jan 22, 2013 at 03:41 UTC ( #1014551=note: print w/replies, xml ) Need Help??


in reply to what does "$@" mean?

Greetings skyworld_chen,

I remember it this way: It's the $calar containing typically the text of the @rror from the most recently failed eval block.

eval { die 'Error string'; } if ($@) { print $@, "\n"; }

From the command-line, perldoc -f eval to learn more.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1014551]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (8)
As of 2016-12-04 17:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (69 votes). Check out past polls.