Change this line:
if ( $line =~/$pattern1/i && !/--%>$/){to this:
if ( $line =~/$pattern1/i && $line !~ /--%>$/){In reply to Re^2: appending comment character in multiple lines based on condition
by stevieb
in thread appending comment character in multiple lines based on condition
by hector89
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |