Help for this page

Select Code to Download


  1. or download this
    sub reduce_hp {
        my ($hp) = @_;
    ...
    my $char_hp = 400;
    $char_hp = reduce_hp($char_hp);
    print("Character now has $char_hp hp\n");
    
  2. or download this
    sub reduce_hp {
        my ($hp) = @_;
    ...
    my $char_hp = 400;
    reduce_hp($char_hp);
    print("Character now has $char_hp hp\n");