"Jay" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I have the following code, which dies "no such file or directory" at > line 8. The problem seems to be that the census data file it relies > on is a single .dbf, and the documentation seems to indicate that the > module looks for three separate .db files. The .dbf file, though, is > the file from the working link in the docs, submitted by the author, > and doesn't seem to have changed since 1999, so I'm slightly > suspicious that, whatever the docs say, the error is in the way I'm > invoking it. Does anyone have experience with this module? > <snip />
I love Geo::PostalCode. Did you read the INSTALL file? From the docs, notice the lwp-download, gunzip, and ./load.pl calls BEFORE perl Makefile.PL is executed: To install, run lwp-download http://tjmather.com/Geo-PostalCode_19991101.txt.gz gunzip Geo-PostalCode_19991101.txt.gz ./load.pl # this will take a few seconds... perl Makefile.PL make make test make install Make sure to install the postalcode.db, city.db and latlon.db files in an approriate directory. This will be the directory passed to the db_dir parameter of the new constructor. I found the above at: http://search.cpan.org/src/TJMATHER/Geo-PostalCode-0.06/INSTALL There is most definitely supposed to be three db files, and ./load.pl creates them. Todd W. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>
