FakeHash

 view release on metacpan or  search on metacpan

FakeHash.pm  view on Meta::CPAN


If any of these methods is passed an additional argument, it will set
the corresponding value.  It will return the old value in any case.

=cut

package FakeHash::Node;

sub new {
  my ($class, @data) = @_;
  bless \@data => $class;
}

sub _access {
  my $self = shift;
  my $index = shift;
  my $oldval = $self->[$index];
  $self->[$index] = shift if @_;
  $oldval;
}



( run in 0.648 second using v1.01-cache-2.11-cpan-3b35f9de6a3 )