in reply to Re: Should a constructor ever return undef?
in thread Should a constructor ever return undef?
eval() catching exceptions seems more awkward to me.my $foo = MaybeADirectoryObject->new(@args) or die "No object: $!";
I would probably carp() instead of print in the constructor.
|
|---|