What is the best way to deal with exceptions threw in a method chaining in Perl?
I want to assign a value of 0 or undef if any of the methods chained throw an exception
One idea would be to create a class that uses overload to return a false value when an instance object is evaluated in string/number/boolean contexts, but would still allow methods to be called on it. An AUTOLOAD method could always return $self allowing a method chain to propagate the same error.