in reply to Re: socket helpin thread socket help
FWIW, this could also be achieved by saying
print scalar <$fh>; [download]
(the <> operator (aka readline) behaves differently depending on context — which by default is "list" with print)