I guess this would fulfill your requirments hopefully...
while(<FILE>) { if( $_ =~ /^lvtnfet/){ print FH $_; print FH NewLine; print FH NewLine; } else{ print FH $_; } }
In reply to Re: Search and add lines into a file. Getting bareword error.
by bimleshsharma
in thread Search and add lines into a file. Getting bareword error.
by freekngeek
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |