Looks like the "keep alive" is a null character (ASCII value 0).
while (<$sock>) { s/^\0+//; # Remove leading null characters print; # print to screen as well to show raw data and connectio +n chomp($_);
should fix the problem.
In reply to Re^3: String manipulation
by GrandFather
in thread String manipulation
by bajangerry
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |