cleanup var scoping
authorDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 23 Apr 2012 11:49:24 +0000 (13:49 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 23 Apr 2012 11:49:24 +0000 (13:49 +0200)
GoogleBooks.pm

index 8bcf0ed..2bf9c1a 100644 (file)
@@ -89,8 +89,6 @@ diag "got $hits results, get first one";
 }
 
 
-our ( $hash, $marc );
-
 sub next_marc {
        my ($self,$format) = @_;
 
@@ -102,7 +100,7 @@ sub next_marc {
 
        my $id = $item->{id} || die "no id";
 
-       $marc = MARC::Record->new;
+       my $marc = MARC::Record->new;
        $marc->encoding('utf-8');
 
        if ( my $vi = $item->{volumeInfo} ) {