in reply to Re^4: Can a socket listen for multiple hosts?
in thread Can a socket listen for multiple hosts?
to match your definition of record. If your record terminator is "***", you can use$buf =~ s/\G(.*\n)//g
$buf =~ s/\G(.*?\*\*\*)//sg
If your records are double quoted strings, you can use
$buf =~ s/\G("(?:[^"\\]|\\.)*")//sg
If you're using fixed-length records, you can use
etc.$buf =~ s/\G(.{128})//sg
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Can a socket listen for multiple hosts?
by sierpinski (Chaplain) on Aug 16, 2010 at 15:16 UTC |