Subject: | Net::OAI::Record::OAI_DC::asString bug |
Date: | Sun, 8 Mar 2009 10:34:43 -0700 (Pacific Daylight Time) |
To: | bug-OAI-Harvester [...] rt.cpan.org |
From: | Batman <batman900 [...] gmail.com> |
Hi, in Net::OAI::Record::OAI_DC the asString method is wrong, instead
of building a string it prints the contents. A fix is shown below:
sub asString {
my $self = shift;
my $r = '';
foreach my $element ( @OAI_DC_ELEMENTS ) {
foreach ( @{ $self->{ $element } } ) {
$r .= "$element => $_\n";
}
}
return $r;
}
Cheers!!
Matt Spear
batman900@gmail.com