summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMichael G Schwern <schwern@pobox.com>2005-07-11 17:16:49 -0700
committerSteve Hay <SteveHay@planit.com>2005-07-13 08:34:53 +0000
commit190aa8358ff15caf49faee81d14f298d768b1227 (patch)
tree6537f8e2080fa0432318dcdc555207e7d7350af0 /lib
parent6a94b120ee88729bcdda97464bd5371758fc8b7d (diff)
downloadperl-190aa8358ff15caf49faee81d14f298d768b1227.tar.gz
[perl #28385] minor bug in cpan -- the i command does not find author
From: "Michael G Schwern via RT" <perlbug-followup@perl.org> Message-ID: <rt-3.0.11-28385-116951.3.97645870397305@perl.org> (and remove a couple of unused variables) p4raw-id: //depot/perl@25133
Diffstat (limited to 'lib')
-rw-r--r--lib/CPAN.pm7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/CPAN.pm b/lib/CPAN.pm
index abcc85ee17..0914e3f8a3 100644
--- a/lib/CPAN.pm
+++ b/lib/CPAN.pm
@@ -1454,13 +1454,14 @@ sub m { # emacs confused here }; sub mimimimimi { # emacs in sync here
sub i {
my($self) = shift;
my(@args) = @_;
- my(@type,$type,@m);
- @type = qw/Author Bundle Distribution Module/;
@args = '/./' unless @args;
my(@result);
- for $type (@type) {
+ for my $type (qw/Bundle Distribution Module/) {
push @result, $self->expand($type,@args);
}
+ # Authors are always uppercase.
+ push @result, $self->expand("Author", map { uc $_ } @args);
+
my $result = @result == 1 ?
$result[0]->as_string :
@result == 0 ?