Download this file
1 2 3 4 5 6 7 8 9 10
#!/usr/bin/perl $special = $normal = 0; while(<STDIN>) { $special++ if /^ >/; $normal++; print; } $prop = $special/$normal; print "proportion: $prop\n";