Help for this page

Select Code to Download


  1. or download this
    sub remove_card
    {
         my ($self) = @_;
    
         return pop(@{$self->{cards}});   # Returns nth element
    }
    
  2. or download this
    $self->cards([$self->cards()->[1..$self->num()-1]]);