convert to $update
authorDobrica Pavlinusic <dpavlin@rot13.org>
Sun, 27 Jun 2010 23:25:48 +0000 (01:25 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Sun, 27 Jun 2010 23:28:01 +0000 (01:28 +0200)
public/code/Cited Author.cleanup.pl
public/code/Year.add_century.pl

index 9f95c16..b76fe36 100644 (file)
@@ -1,4 +1,4 @@
-map {
-       s/^\.+//;
-       $_ = uc $_;
-} @{ $row->{'Cited Author'} };
+foreach my $a ( @{ $row->{'Cited Author'} } ) {
+       $a =~ s/^\.+//;
+       push @{ $update->{'Cited Author'} }, uc $a;
+}
index c5b3c06..839c49f 100644 (file)
@@ -1,3 +1,3 @@
 foreach my $year ( @{ $row->{Year} } ) {
-       push @{ $row->{century} }, int($year/100)+1;
+       push @{ $update->{century} }, int($year/100)+1;
 }