It's $sock(0) not $socket(0).


Beware of MeStinkBAD! He knows more than he actually does!