in reply to How to delete conetents between two strings.
use strict; use warnings; while (<DATA>) { print unless (/\*\*Temp/ .. /\*\*End/); } __DATA__ **Temp** fdvfd fgd dfgd dfgd **End Temp ** this is test dffdgd this is test dffdgd
prints:
this is test dffdgd this is test dffdgd
Update: Please correct the typo in your title: s/conetents/contents/ Nevermind, Anonymous Monk
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to delete contents between two strings.
by mscharrer (Hermit) on Sep 17, 2008 at 14:14 UTC |