I am using a socket connection to read dynamic data and store this in buffer.I am using sysread() to do so.But since the data recieved is very inconsistent
.in that case the filehandle reads the same data again when there is no new data.
Please let me know is there a way not to read the same data we read earlier.
I am pasting the code below.
Please revert back if you need more info.
To read i use:
my $nread=sysread($this->{fh},$this->{buf},16384);
I put this line in a loop to read from socket for 3 secs and also till it really has something to read.
Appriciate an early response