You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Call of $memd->get(undef, cb => sub { my ($val, $err) = @_; ... }) raises Use of uninitialized value within @_ in list assignment warning.
I'm not shure that it is an error. But…
The reason for this is that if $key is undef in _get() method then $args{cb}( $array ? \%res : $res{ $keys } ); calls with one undefined argument (not undef value).
So may be you wouldn't send request to the server if key isn't defined. Like this:
sub _get {
my $self = shift;
my $cmd = shift;
my $keys = shift;
my %args = @_;
unless (defined($keys)) {
$_ and $_->begin() for $self->{cv}, $args{cv};
$args{cb}(undef);
$_ and $_->end() for $self->{cv}, $args{cv};
return;
}
...
}
The text was updated successfully, but these errors were encountered:
Call of
$memd->get(undef, cb => sub { my ($val, $err) = @_; ... })
raises warning.I'm not shure that it is an error. But…
The reason for this is that if
$key
isundef
in_get()
method then$args{cb}( $array ? \%res : $res{ $keys } );
calls with one undefined argument (notundef
value).So may be you wouldn't send request to the server if key isn't defined. Like this:
The text was updated successfully, but these errors were encountered: