my $count; my $last = ''; while (read(DATA, my $byte, 1)) { ++$count if $byte eq $last; $last = $byte; } [download]
In reply to Re: Byte repetition check by ikegami in thread Byte repetition check by james28909