- or download this
sub new {
my ($thing) = @_ ;
...
# make sure to return true-evaluating or at least non-undef value
return 1;
}
- or download this
$O->foo() or die "could not blabla: ".$O->error();
- or download this
sub bar {
my ($self) = @_;
...
$O->bar() or die "could not blabla: ".$O->error();
# "could not blabla: bar failed to rhubarb: foo: could not do thisandt
+hat"