package Equation_Problem;
use Moose;
use MooseX::Invertible_Build;
has mass => ( isa => Num);
has velocity => ( isa => Num);
has momentum => (
isa => Num,
invertible_build => {
A => 'mass',
B => 'velocity',
via => 'A * B',
},
);
To 'save' typing: package Equation_Problem;
use Moose;
has mass => ( isa => Num);
has velocity => ( isa => Num);
sub momentum {
my $self = shift;
$self->mass * $self->velocity;
}
Hm. It can't be that in(s)ane.
With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
|