in reply to Problem with POE and Port Forwarding

How did you manage to even compile your code? I tried it with perl 5.8.8 and POE 0.3502-1 as well as on perl 5.10.0 and POE 1.0001-1, and with both combinations I get
Bareword "ARG" not allowed while "strict subs" in use at foo.pl line 2 +0. Execution of foo.pl aborted due to compilation errors.

Update: how embarrassing, shmem is right - it was a copy-paste error on my side. With the correct code I can reproduce the problem on both platforms mentioned above.

POE::Wheel::SocketFactory doesn't have a put method. It seems you are expecting a different object (a socket, no socket factory). My POE-fu isn't good enough to suggest a solution, though.

Replies are listed 'Best First'.
Re^2: Problem with POE and Port Forwarding
by shmem (Chancellor) on May 22, 2008 at 14:17 UTC
    Bareword "ARG" not allowed while "strict subs" in use at foo.pl line 20.

    Copy-paste error. That word on line 20 is ARG0, which is a constant sub invocation (returns 10).

    Use the download link...

    --shmem

    _($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                                  /\_¯/(q    /
    ----------------------------  \__(m.====·.(_("always off the crowd"))."·
    ");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}