in reply to Removing Newline Characters from File Data (chomp not working)
note that local is in it's own block so as not to mess with anything else... while (<$FH>){ { local $/="\r\n"; chomp; } ... } ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Removing Newline Characters from File Data (chomp not working)
by mlux (Initiate) on Aug 27, 2009 at 16:33 UTC |