If it's not a telnet server but a plain connection, you might be better off using something like ...
I completely agree, though personally I would implement it at a higher level than you showed: I'd use Mojo::IOLoop together with Mojo::IOLoop::Stream::Role::LineBuffer. Example code here.
In reply to Re^2: Telnet responses
by haukex
in thread Telnet responses
by mikebailey
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |