in reply to I'm confused... using Geo::Weather

Well, that means that $current is -4. Which is probably an error indication of some sort from get_weather(). It's a bit peculiar to have a function return either a HASH ref or a negative number, though (I'd wonder about the sanity of the writer of Geo::Weather if that were the case).

Replies are listed 'Best First'.
Re: Re: I'm confused... using Geo::Weather
by Sabacthani (Novice) on Jun 25, 2001 at 23:43 UTC
    Thank you. As it happens, you are right to wonder...
    I'm still not sure exactly what was going on, but at least once the problem was when I requested get_weather('NY','New York');
    Apparently it really wants it in the format ('New York','NY') and instead of returning the ERROR_IN_QUERY message, it returned the ERROR_NOT_FOUND error code... all of the errors are negative numbers...

    Thanks again,
    Benjamin