Oh, I didn't notice that you added local $/; to the first snippet too!
local $/; while (<>) provides error checking (empty file, read error) that local $/; $_ = <>; doesn't.
In reply to Re^3: Advantage of while(<>){while()}?
by ikegami
in thread Advantage of while(<>){while()}?
by Argel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |