if($value =~ /# __START_CONFIG__/i) { $action=2; print outfile1 $value; next; }