Yes, i tried that earlier, but i'll try it again
Main Topics
Browse All TopicsI'm doubtful about the use of the buffer in the code below. Also i'm getting some runtime errors:
"substr outside of string at /bk/goose/tmptmp/sss.worki
Use of uninitialized value $buff in ord at /bk/goose/tmptmp/sss.worki
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Let's do some debugging. On line 187 add:
print STDERR "Bufflen: $t\n";
foreach my $char (split(//, $buff)) {
print STDERR "Buffchar: $char - ", ord($char), "\n";
}
And re-run. It looks like you're not getting enough data into $buff and then substr() is barfing. You should actually check for this. Something like this (again, line 187 is a good spot).
if ($t < 3) {
print STDERR "Didn't receive enough data into buffer from sysread\n";
exit;
} else {
.....
}
Hmm. Pity there's no foce blocking option.
I know the problem is as i stated at http:#25368575 btw as i employed a kludge 'from the other end' : namely i cause all calls to write at the client to be buffered and only actually written to the stream when i call flush(). That causes the server to behave properly, but of course this should not be necessary
Business Accounts
Answer for Membership
by: nemws1Posted on 2009-09-18 at 08:41:14ID: 25367118
What if you add this immediately after the the if() in line 195:
Select allOpen in new window