- or download this
if($object->method) { .. } else { my $error = $object->error(); }
- or download this
sub foo {
...
return(1);
}
}
- or download this
sub error {
...
return($self->{'Error'});
}
- or download this
sub raise_error {
...
$self->{'Raise'} = $_[0] if( defined($_[0]) );
return($self->{'Raise'});
}