Use
my ($method, $uri, $protocol) = $request_line =~ /(\V+) \040 (\V+) \04 +0 (\V+)/x;
instead of
my ($method, $uri, $protocol) = $request_line =~ /(.+) \040 (.+) \040 +(.+)/x;
You were matching a \r with . which caused the output to overwrite itself.
In reply to Re: TCP server with IO::Socket
by tybalt89
in thread TCP server with IO::Socket
by AlexP
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |