Thread fehler abfangen mit eval
(13 answers)
Opened by supersucker at 2005-06-17 19:58
$@ 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 nor- mal fashion). (Mnemonic: Where was the syntax error "at"?) also einfach nur if ($@) { schreiben. Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. -- Damian Conway in "Perl Best Practices"
lesen: Wie frage ich & perlintro brian's Leitfaden für jedes Perl-Problem |