Ho trovato questo in Mail::IMAPClient. Da dove proviene il $_
in $SEARCH_KEYS{ uc($_) }
?
sub _quote_search {
my ($self, @args) = @_;
my @ret;
foreach my $v (@args) {
if (ref($v) eq "SCALAR") {
push(@ret, $$v);
}
elsif (exists $SEARCH_KEYS{ uc($_) }) {
push(@ret, $v);
}
elsif (@args == 1) {
push(@ret, $v); # <3.17 compat: caller responsible for quoting
}
else {
push(@ret, $self->Quote($v));
}
}
return @ret;
}
Sembra che dovrebbe essere $ v. A volte ciò che vedi sono bug. :) –
Poiché 8 bug su 10 che trovo alla fine non sono bug, sono un po 'cauto. –
Lascia ancora il 2/10 che sono :) –