in reply to Re^2: Missing values when running code.
in thread Missing values when running code.
Yes, sorry: my first response wasn't too helpful. Replacing $tree = $tpp->parsehttp( GET => $url ); with the following consistently returned all cities:
my $count = 5; $tree = $tpp->parsehttp( GET => $url ) while !defined $tree and $count +--;
Using $count helps to insure the script's not forever caught in the while loop.
Update: Modified the description and tweaked the $count routine.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Missing values when running code.
by Anonymous Monk on Aug 14, 2012 at 15:21 UTC |