
On 06/01/12 15:06, Russell Coker wrote:
When hacking some Perl code I encountered $@. It seems that is just a way of dumping the last error. Unfortunately Google doesn't help me because it only does a word based search.
man perlvar $@ The Perl syntax error message from the last eval() operator. If $@ is the null string, the last eval() parsed and executed correctly (although the operations you invoked may have failed in the normal fashion). (Mnemonic: Where was the syntax error "at"?) Warning messages are not collected in this variable. You can, however, set up a routine to process warnings by setting $SIG{__WARN__} as described below. Also see "Error Indicators". -- Chris Samuel : http://www.csamuel.org/ : Melbourne, VIC