in reply to Re^2: String manipulation
in thread String manipulation
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: String manipulation
by bajangerry (Sexton) on Aug 07, 2007 at 21:49 UTC | |
by graff (Chancellor) on Aug 07, 2007 at 22:28 UTC | |
by GrandFather (Saint) on Aug 07, 2007 at 22:20 UTC |