Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re: IO::Select multiplexing

by Rudif (Hermit)
on Jun 30, 2001 at 21:28 UTC ( #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 + 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\ 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


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?

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (6)
As of 2023-11-30 23:14 GMT
Find Nodes?
    Voting Booth?

    No recent polls found