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

Re: IO::Select multiplexing

by Rudif (Hermit)
on Jun 30, 2001 at 21:28 UTC ( [id://92930]=note: print w/replies, xml ) Need Help??


in reply to IO::Select multiplexing

Did you type it in and perhaps mistyped something?

For me, the example web_fetch_p.pl + HTTPFetch.pm worked straight out of the box - almost. I downloaded the example zip file from the book and unzipped it.

Working on Win2k, I got this error on my first attempt to run it

"EINPROGRESS" is not exported by the Errno module at H:\devperl\socket +s\perl_networking\ch13\HTTPFetch.pm line 12
I found a workaround
use POSIX qw(:errno_h); #use Errno 'EINPROGRESS';

After this, I successfully retrieved a couple of perlmonks nodes: ours and yours

Rudif

Note: I also added the line to modify $localpath

$localpath .= "index.html" if $localpath =~ m!/$!; $localpath =~ s/[\?\=\&]/-/g; # Rudif
so that the URL of a perlmonks node translates into a valid filename (HTTPFetch stores the retrieved URL content into a local file of similar name).

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2024-04-23 13:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found