Subject: | little bug |
Date: | Thu, 29 Apr 2010 20:04:37 +0200 |
To: | bug-Mail-IMAPClient [...] rt.cpan.org |
From: | Matthäus Kiem <matthaeuskiem [...] gmail.com> |
Hello,
there might be a little bug in IMAPClient.pm.
Please follow the link
http://stackoverflow.com/questions/2736265/where-does-come-from-in-this-perl-
foreach-loop
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($_) } ) { # <----------- the $_
push( @ret, $v );
}
elsif ( @args == 1 ) {
push( @ret, $v ); # <3.17 compat: caller responsible for
quoting
}
else {
push( @ret, $self->Quote($v) );
}
}
return @ret;
}