$ perl test.pl
child started
Cannot connect to child socket - Connection refused
Cannot connect to child socket - Connection refused
Cannot connect to child socket - Connection refused
connection from 127.0.0.1:33788
Child reading socket
sysread() is deprecated on :utf8 handles at test.pl line 108.
Child got /Hello/
connection from 127.0.0.1:33792
Child reading socket
sysread() is deprecated on :utf8 handles at test.pl line 108.
Child got /Hello2/
shutdown 1
Child reading socket
sysread() is deprecated on :utf8 handles at test.pl line 108.
Child EOF
Child reading socket
sysread() is deprecated on :utf8 handles at test.pl line 108.
Child EOF
shutdown 2
closing socket
Killing child
waiting on child
parent exiting