next unless /\Q$markers{END}\E/;
and the same for the other pattern match. This ensures that your markers string gets seen as a literal string to match, not as a pattern itself. Especially if you are using < and > which tend to have meanings within regexes.
dave hj~
In reply to Re: Re: Modifying A Bunch of Files by replacing specific lines
by dash2
in thread Modifying A Bunch of Files by replacing specific lines
by ishaqali
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |