Weather-Com - City selection

Posted on Mon Apr 11 18:56:25 2005 by matsk
City selection
Hi, I'm programming a "Weather to Voice" script based on weather::com.

I have a problem with defining the city according to the output from the example in the "Weather::Simple".

The locations output from the example in "Weather::Simple" shows 'New York/Central Park, NY', but if I use it, it fails if I use that as the input to "weather.pl".

./weather.pl

Welcome to Uncle Tom's weather station...
This is V1.012

Please enter a location name to look for, e.g
'Heidelberg' or 'Seattle, WA', or 'Munich, Germany'

$ New York/Central Park, NY
No weather found for location 'New York/Central Park, NY'

But,
$ Central Park, NY
Found weather data for 1 locations:
is successful.

Is there a way to use the full string 'New York/Central Park, NY' as location ?

/Mats
Direct Responses: 325 | Write a response