Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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 surveying the Monastery: (7)
As of 2015-07-02 23:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (47 votes), past polls