FakeHash
view release on metacpan - search on metacpan
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;
}
view all matches for this distributionview release on metacpan - search on metacpan
( run in 1.114 second using v1.00-cache-2.02-grep-82fe00e-cpan-a086c87fca4 )