Whenever you get weird terminal output and carriage returns may be in the mix that's one of the first things to look for; piping things through od -xa or the like may be elucidating.
Also while you're doing this as a learning exercise be aware there's lots of well tested HTTP servers on CPAN and you'd probably be better served by one of them for anything beyond pedagogical experimenting. Things like Mojolicoious or Dancer2 give you a complete stack, whereas HTTP::Daemon is lower level; or look at POE::Filter::HTTPD for another approach.
The cake is a lie.
The cake is a lie.
The cake is a lie.
In reply to Re: TCP server with IO::Socket
by Fletch
in thread TCP server with IO::Socket
by AlexP
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |