in reply to Sockets, ioctl and non-blocking reading on ActivePerl

Try

my $arg = 1; $num = ioctl($server, 0x8004667e, \$arg);

Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
"I'd rather go naked than blow up my ass"

Replies are listed 'Best First'.
Re^2: Sockets, ioctl and non-blocking reading on ActivePerl
by desemondo (Hermit) on Jan 12, 2010 at 10:36 UTC
    dam... so simple, I don't know how I missed it. Many, many thanks!

    I'm guessing the reason why is that the OS needs a reference to a string containing a non-zero value, and not an actual integer.

    (incidentally I had also tried \1 thinking it was the same thing, but this complained that Can't coerce readonly REF to string... It makes much more sense now.)