while (){ s/\*/* /g; print }; __DATA__ ******************* ******************** #### if($dlog2[$co] eq '*') { print $fh " ,"; }