in reply to Iterator to parse multiline string with \\n terminator
open my $fh, '<', $filename or die "Cannot open '$filename' because: $ +!"; while ( <$fh> ) { chomp; if ( s/\\$// ) { $_ .= <$fh>; redo; } # now complete line in $_ }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Iterator to parse multiline string with \\n terminator
by three18ti (Monk) on Oct 06, 2013 at 09:08 UTC | |
by jwkrahn (Abbot) on Oct 06, 2013 at 21:41 UTC |
In Section
Seekers of Perl Wisdom