in reply to Extract individual lines and block of text from large files
Note that you need to escape the '/' in the DOCUMENT tag.{ $htm = join('',$1,$2,$3,$4); while ( my $htm_line = <$FH_IN> ) { last if $htm_line =~ m/^\s*<\/DOCUMENT>/i; $htm .= $htm_line; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Extract individual lines and block of text from large files
by wrkrbeee (Scribe) on Apr 06, 2016 at 21:45 UTC |