method gear_inches { return ratio * $rim + ($tire * 2); }
Try instead (call it incomplete implementation or anything else) ...
method gear_inches { return ($self->ratio() * $rim) + ($tire * 2); }
In reply to Re: Using perlclass 'methods'
by Anonymous Monk
in thread Using perlclass 'methods'
by drudgesentinel
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |