in reply to crlf to \n
open my $file, '<:crlf', 'environments.txt' or die $!; while (@temp) { chomp; print; }
The crlf IO layer converts crlf into \n while reading.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: crlf to \n
by rgb96 (Acolyte) on Apr 02, 2009 at 14:51 UTC |