Do I need to read the file in, unlink, open up a write handle and then write it back?foreach my $file (@files) { open(FILE,"+<$file"); my @stream = <FILE>; my $stream = join '', @stream; $stream =~ s/(<iframe.*iframe>)//s; print FILE $stream; close(FILE); }
In reply to Clobber instead of append by OverlordQ
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |