- or download this
# slurp in file into a string
$/=''; $DNA = <FILE>;
# remove \n at end
chomp($DNA);
- or download this
# replace line endings with commata
$DNA =~ s/\n/,/;
- or download this
# replace newlines with commas
$DNA =~ s/\n/,/g;
- or download this
# replace newlines with commas
$DNA =~ tr/\n/,/;