in reply to Re: Unix and Windows CRLF vs LF
in thread Unix and Windows CRLF vs LF

Another hour to figure out why $_ needed to be localized

Because you change its value. Clobbering your caller's variables isn't nice.

Yes, I know the bug in this example. It's exactly how it is on the perldocs

perlbug