in reply to Re^2: Hex value of Perl file handle to uniquely identify
in thread Hex value of Perl file handle to uniquely identify
Be aware that handles do get reused. Once a client disconnects, the next connect might reuse that handle.
For uniqueness, you might consider combining the output from IO::Socket's PeerHost() and PeerPort() methods: xxx.xxx.xxx.xxx:nnnn.
Also, I don't see a lot of value in sprintfing the handle, over the default stringification 'GLOB(0xHHHHHH)"?
|
|---|