in reply to Re: How can one change the keys of a hash to an alternative set of keys?
in thread How can one change the keys of a hash to an alternative set of keys?
sub clone { my $self=shift; my $clone=new Board; $clone->{rep}=$self->{rep}; $clone->{castling_rights}=$self->{castling_rights}; $clone->{half_move_clock}=$self->{half_move_clock}; $clone->{full_move_number}=$self->{full_move_number}; $clone->{ep_pos}=$self->{ep_pos}; $clone->{turn}=$self->{turn}; return $clone; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How can one change the keys of a hash to an alternative set of keys?
by AnomalousMonk (Archbishop) on Feb 05, 2015 at 06:15 UTC | |
|
Re^3: How can one change the keys of a hash to an alternative set of keys?
by choroba (Cardinal) on Feb 05, 2015 at 08:57 UTC |