Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1014551]
[Eily]: someday FF will start posting back messages where you tell to ignore the previous message
[Eily]: and Hilarity Ensues
Eily says, while failing to write a link properly
[Your Mother]: Goodbye Fancy Feast! Hello Friskies!!!
[LanX]: CB sidebar auto-expansion problem
[Eily]: "tail: warning: following standard input indefinitely is ineffective". I can't help but feel that tail is judging me...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (8)
As of 2017-03-27 16:42 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (320 votes). Check out past polls.