X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBM%2FDeep%2FHash.pm;h=633e6d589e88ec00c3eeb98cba54bfc13969d03f;hb=HEAD;hp=3188dd12f4ef9ccee51fff19e71e0e1feb7d38b2;hpb=a8ee1892e98cea35cbf63bddd1a34d5849e3ca03;p=dbsrgits%2FDBM-Deep.git diff --git a/lib/DBM/Deep/Hash.pm b/lib/DBM/Deep/Hash.pm index 3188dd1..633e6d5 100644 --- a/lib/DBM/Deep/Hash.pm +++ b/lib/DBM/Deep/Hash.pm @@ -15,9 +15,6 @@ sub _get_self { sub _repr { return {} } sub TIEHASH { - ## - # Tied hash constructor method, called by Perl's tie() function. - ## my $class = shift; my $args = $class->_get_args( @_ ); @@ -67,10 +64,8 @@ sub DELETE { return $self->SUPER::DELETE( $key, $_[0] ); } +# Locate and return first key (in no particular order) sub FIRSTKEY { - ## - # Locate and return first key (in no particular order) - ## my $self = shift->_get_self; $self->lock_shared; @@ -84,10 +79,8 @@ sub FIRSTKEY { : $result; } +# Return next key (in no particular order), given previous one sub NEXTKEY { - ## - # Return next key (in no particular order), given previous one - ## my $self = shift->_get_self; my $prev_key = ($self->_engine->storage->{filter_store_key}) @@ -105,11 +98,8 @@ sub NEXTKEY { : $result; } -## -# Public method aliases -## sub first_key { (shift)->FIRSTKEY(@_) } -sub next_key { (shift)->NEXTKEY(@_) } +sub next_key { (shift)->NEXTKEY(@_) } sub _clear { my $self = shift;