sub damage { ... $self->{_hp} = $self->{_hp} - $hits; # or, more succinctly: # $self->{_hp} -= $hits; }
In reply to Re^2: Perl OO newbie advice - object interaction
by japhy
in thread Perl OO newbie advice - object interaction
by yoda54
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |