Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (10)
As of 2016-06-30 15:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (396 votes). Check out past polls.