I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2005-04-11 15:56:25-07 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