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
In reply to Re: How to delete contents between two strings.
by toolic
in thread How to delete conetents between two strings.
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |