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
In reply to Re: Reading in a text file with "multi line lines"
by Skeeve
in thread Reading in a text file with "multi line lines"
by tsk1979
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |