Reading the file into a string did the trick, thanks.
{ local $/ = undef ; open TEST,'test' or die "Denied: $!\n" ; my $string = <TEST> ; close TEST ; $string =~ s/\n\nstart_of_block.*?};//s ; print $string ; }
In reply to Re^2: delete above matching line?
by oldmanwillow
in thread delete above matching line?
by oldmanwillow
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |