Iam trying to remove a test segment frequently occurs in a file. I have a matching keyword [let suppose FIND_WORD(---------
-----------
-----------);
is terminating after 2 or 3 lines at " );" ]but i need to remove next few lines also till ");"
I am using
if ($line =~ m/FIND_WORD/) {return 0;}
which removes one line
I need to remove till ");"