- or download this
unless ( $object->method('param') ) {
## somehow get $errstr
...
}
## %erract contains such things as ('220' => sub { die $_ });
- or download this
unless ( $object->method('param') ) {
my ($errcode) = split ' ', $_;
&$erract{$errcode}($_);
}
- or download this
eval { $object->method('param') }; if ($@) {
my ($errcode) = split ' ', $@;
&$erract{$errcode}($@);
}