Thread fehler abfangen mit eval (13 answers)
Opened by supersucker at 2005-06-17 19:58

pq
 2005-06-19 02:54
#55527 #55527
User since
2003-08-04
12208 Artikel
Admin1
[Homepage]
user image
      $@      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: Wiki:Wie frage ich & perlintro Wiki:brian's Leitfaden für jedes Perl-Problem

View full thread fehler abfangen mit eval