in reply to Google MapsAPI
Suggestions for what? To make it work? To make it faster? More efficient? More secure? Shorter? Cleaner, easier to read?
For starters, I'll throw in that Perl can interpolate variables within double-quoted strings, so you don't have to concatenate long series of strings and variables like you're writing Javascript. Also, when you're joining a bunch of strings together with a common delimiter, the join function comes in handy. So your last print line could be much clearer:
print join("\t", "Count: $count", "ADDRESS: $address1", "CITY: $city", "STATE: $prov", "Duration: $duration", "Distance: $distance", "Status: ".$response->status ), "\n"; $count++;
Aaron B.
Available for small or large Perl jobs; see my home node.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Google MapsAPI
by drodinthe559 (Monk) on May 27, 2012 at 15:58 UTC | |
by aaron_baugher (Curate) on May 28, 2012 at 03:37 UTC |