in reply to Reading in a text file with "multi line lines"
while (<>) { # read line while (s/\\$/ /) { # while the current line ends with \ # replace it by blank and append a new line. chomp; # thanks to ww $_.= <>; }
Update: the chomp should do it. Thanks to ww
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Reading in a text file with "multi line lines"
by ww (Archbishop) on Nov 01, 2007 at 13:32 UTC |