Thread Return-Codes, Error-Handling?! (1 answers)
Opened by Neo at 2006-07-24 14:59

pq
 2006-07-24 15:43
#68342 #68342
User since
2003-08-04
12208 Artikel
Admin1
[Homepage]
user image
es gibt CPAN:Error.
ansonsten, von hand:
Code: (dl )
1
2
3
4
5
6
7
8
eval {
 # try
 blubber();
};
if ($@) {
 # catch error
 print STDERR "Error occurred: $@\n";
}
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 Return-Codes, Error-Handling?!