Mark Fowler wrote:

 my $diff = $social-$now;
 print $diff->total_seconds;  # or some other method name


This is what subtract_datetime_absolute does, but it is not the method employed for overriding the minus operator:


my $diff = $social->subtract_datetime_absolute($now);
print $diff->seconds; # I guess $diff->delta_seconds would be more idomatic?


Can decorators change methods used for overrides?

Matt




Reply via email to