in reply to Tkx and tcp server
I googled for "tkx fileevent" and came up with this code usage
It LOOKS like you need to pass in an arrayref, rather than a sub.my $fh = Tkx::open("| @cmds <$null 2>\@1"); Tkx::fconfigure($fh, -blocking => 0); Tkx::fileevent($fh, readable => [\&run_watch, $fh]);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Tkx and tcp server
by momo33 (Beadle) on Mar 18, 2011 at 15:40 UTC | |
by zentara (Cardinal) on Mar 21, 2011 at 14:59 UTC | |
by Anonymous Monk on Mar 21, 2011 at 16:49 UTC | |
|
Re^2: Tkx and tcp server
by Anonymous Monk on Mar 19, 2011 at 03:46 UTC | |
by momo33 (Beadle) on Mar 19, 2011 at 07:45 UTC |