in reply to Count byte/character occurrence (quickly)
Perl offers autovivivication and magic auto-increment. You don't need the if at all:
$seen{$_}++ for split // => $buf;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Count byte/character occurrence (quickly)
by james28909 (Deacon) on Apr 01, 2016 at 08:33 UTC |