my $first_line = ; chomp $first_line; $first_line =~ s/,/chr(31)/eg; print $first_line, chr(30);