in reply to Cant find out how to get the real file handle name!
If you want to compare filehandles, use fileno()if ($fh == $lsn) { # this does not do what you think it does
$inbuffer{$fh} .= $buf; # Hash keys are stored as STRINGS. ... foreach $client (keys %ready) { # So, when you are finally here # $client is just a STRING # It is no longer a reference handle($client); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Cant find out how to get the real file handle name!
by Fletch (Bishop) on Apr 16, 2002 at 18:43 UTC | |
by mslattery (Initiate) on Apr 18, 2002 at 14:31 UTC | |
by mslattery (Initiate) on Apr 18, 2002 at 14:37 UTC | |
|
Re: Re: Cant find out how to get the real file handle name!
by mslattery (Initiate) on Apr 18, 2002 at 14:29 UTC |