Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 2294143964
Fetching contributors…

Cannot retrieve contributors at this time

executable file 17 lines (13 sloc) 0.281 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#!/usr/bin/env perl
use strict;
use warnings;

use Data::Dumper;

my %counts;
while(<>) {
    next if />/;
    chomp;
    $counts{$_}++ for split "",$_;
}

$counts{total} += $_ for values %counts;

print Dumper \%counts;
printf(q|%0.2f%% Ns|."\n", $counts{N}/$counts{total}*100 );
Something went wrong with that request. Please try again.