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