#!/usr/bin/env perl -aF'' -nl
$t += @F;
$c{$_}++ for @F;
END {
printf("%s\t%d\t%.3f\n", $_, $c{$_}, $c{$_} / $t) for keys %c;
print "Total: $t"
}
Of course the simplest solution from IRC was say `wc -c @ARGV` In reply to Re: Golf: Improve this guy's fail . . . please!
by perigrin
in thread Golf: Improve this guy's fail . . . please!
by dragonchild
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |