Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

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\ line 36
Bad file descriptor at D:\FileBin\ 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
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.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://14601]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2015-11-30 07:13 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (763 votes), past polls