X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FUSDB.pm;h=14f9fc2ec49fa860b8107728a5414847d9eb5d9a;hb=78f7e0cc760aee1a38c38c83187fc050576dfb14;hp=c12247a34503b2ce47e3d93dc0251e669726dda9;hpb=c0061eedd6e656543667cf2d204340975eea1ecc;p=spider.git diff --git a/perl/USDB.pm b/perl/USDB.pm index c12247a3..14f9fc2e 100644 --- a/perl/USDB.pm +++ b/perl/USDB.pm @@ -13,7 +13,7 @@ use DXVars; use DB_File; use File::Copy; use DXDebug; -use Compress::Zlib; +#use Compress::Zlib; use vars qw($VERSION $BRANCH); $VERSION = sprintf( "%d.%03d", q$Revision$ =~ /(\d+)\.(\d+)/ ); @@ -102,20 +102,11 @@ sub load # now write away all the files for (@_) { - my $fn = shift; - my $if = gzopen($fn, "r") or return "Cannot open $fn $!"; - my $ofn = "$fn.upk"; - my $of = new IO::File "+>$ofn" or return "Cannot read $ofn $!"; - my ($l, $buf); - while ($l = $if->gzread($buf)) { - $of->write($buf, $l); - } - $if->gzclose; - $of->close; - $of = new IO::File "$ofn" or return "Cannot read $ofn $!"; + my $ofn = shift; + my $of = new IO::File "$ofn" or return "Cannot read $ofn $!"; while (<$of>) { - $l = $_; + my $l = $_; $l =~ s/[\r\n]+$//; my ($call, $city, $state) = split /\|/, $l;