Subject: | Crashes when you try to create a Geo::Google::Location object |
Date: | Sun, 3 Dec 2006 16:38:58 -0500 |
To: | bug-Geo-Google [...] rt.cpan.org |
From: | "Michael Trowbridge" <maltedmethod [...] googlemail.com> |
This script:
<code>
#!/usr/bin/perl
use Geo::Google;
my $geo = Geo::Google->new();
print "Geo::Google object created\n";
my $address = "Washington, DC";
my $loc = $geo->location( address => $address )
or die "Can't look up location in google!\n";
print "Geo::Google::Location object created\n";
print "$address\nLat: " . $loc->latitude() . " long: " .
$loc->longitude() . "\n";
</code>
produces this output:
Geo::Google object created
no element found at line 1, column 0, byte -1 at
/usr/lib/perl5/vendor_perl/5.8.8/i686-linux/XML/Parser.pm line 187