Tkx::fileevent( $client, readable =>[\&handle_connection, \$client] ); # whereas the correct syntax I previously posted is Tkx::fileevent($fh, readable => [\&run_watch, $fh]);