Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
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)


Comment on RE: OPPS - Grab weather from yahoo (2)
Download Code
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (11)
As of 2014-07-30 03:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (229 votes), past polls