It seems your variable $abc is a multiline string, i.e. there are \n inside. So probably you can just delete anything starting with your search string to the next \n. Surely your teacher showed you how to specify "anything"
In reply to Re: Required help on substitution using a string in perl
by jethro
in thread Required help on substitution using a string in perl
by amarbvn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |