Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

RE: OPPS - Grab weather from yahoo (2)

by Adam (Vicar)
on May 24, 2000 at 20:55 UTC ( #14601=note: print w/replies, xml ) Need Help??


in reply to OPPS - Grab weather from yahoo (2)

This worked really well the first time. Then I ran it again with a different zip code and it crashed thusly:
IO::Socket::INET: Bad peer address at D:\FileBin\weather.pl line 36
Bad file descriptor at D:\FileBin\weather.pl line 36.
Line 36 is this one:$remote = new IO::Socket::INET ((I think)

Replies are listed 'Best First'.
RE: RE: OPPS - Grab weather from yahoo (2)
by scribe (Initiate) on May 25, 2000 at 02:48 UTC
    I believe this is caused when yahoo splits that
    zipcode / city up into differnt weather reports or
    the city is found in multiple states.

    On yahoo's site it lists options of differnt locations
    in such instances and the users is expected to drill down
    by clicking one of the links.

    I've added an if statement to make it quit nicely.
    Maybe I'll reqrite it using one of the modules KM has
    pointed out.

    -scribe

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://14601]
help
Chatterbox?
and snow settles gently...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2016-12-04 23:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (70 votes). Check out past polls.