Help for this page

Select Code to Download


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