Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
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.


Comment on Re: what does "$@" mean?
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (7)
As of 2014-07-12 04:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (238 votes), past polls