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.
In reply to Re^3: Missing values when running code.
by Kenosis
in thread Missing values when running code.
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |