Help for this page
package Quantity; ... $self->new($self->{quantity + $target->{quantity}, $self->{unit}); }
$a = Quantity->new(10, 'apple'); $b = Quantity->new(20, 'orange'); ... ... $c = $a + $b; # dies "Oi! you can't add apples to oranges!"
www.com | www.net | www.org
No recent polls found