Help for this page

Select Code to Download


  1. or download this
    use Modern::Perl;
    use Data::Dump qw /dump/;
    
    ...
    first  ACGATT--GAT
    second AGTTAAC-TTT
    third  TTAGCAGG-TA
    
  2. or download this
    (
      { A => 2, T => 1 },
      { C => 1, G => 1, T => 1 },
    ...
      { A => 1, T => 2 },
      { A => 1, T => 2 },
    )
    
  3. or download this
    while (<DATA>) {
        my $seq;
        $results[$seq++]{$_}++ for split '', (split /\s+/)[1];
    }