}
sub FETCH {
- my $self = $_[0]->_get_self;
- my $key = $_[1];
+ my $self = shift->_get_self;
+ my ($key) = @_;
$self->lock( $self->LOCK_SH );
}
sub EXISTS {
- my $self = $_[0]->_get_self;
- my $key = $_[1];
+ my $self = shift->_get_self;
+ my ($key) = @_;
$self->lock( $self->LOCK_SH );
}
sub DELETE {
- my $self = $_[0]->_get_self;
- my $key = $_[1];
+ my $self = shift->_get_self;
+ my ($key) = @_;
my $unpacked_key = $key;
##
# Set the length of the array
##
- my $self = $_[0]->_get_self;
- my $new_length = $_[1];
+ my $self = shift->_get_self;
+ my ($new_length) = @_;
$self->lock( $self->LOCK_EX );
##
# Remove and return the last element on the array
##
- my $self = $_[0]->_get_self;
+ my $self = shift->_get_self;
$self->lock( $self->LOCK_EX );
# Remove and return first element on the array.
# Shift over remaining elements to take up space.
##
- my $self = $_[0]->_get_self;
+ my $self = shift->_get_self;
$self->lock( $self->LOCK_EX );