Let's play with overloading a little. A simple class: package Local::Overloaded { use Moo; has number => ( is => 'ro' ); use overload '0+' => sub { my $self = shift; return $self->number; }; } And let's test...| Toby Inkster
With my open source work, I've historically taken an approach which relies more on integration testing than unit testing, but with some of my newer projects, I've tried adopting principles from $paidwork and applying them to my free software.| blogs.perl.org