in reply to Find what characters never appear
For every character in the file, set (or increment) $seen[ord($ch)]. When you're through the file, the unset elements of the array @seen (indices 0..255) are the bytes that didn't occur...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Find what characters never appear
by Narveson (Chaplain) on Sep 04, 2009 at 22:20 UTC | |
by kennethk (Abbot) on Sep 04, 2009 at 23:21 UTC | |
by Narveson (Chaplain) on Sep 05, 2009 at 13:35 UTC | |
by almut (Canon) on Sep 04, 2009 at 23:01 UTC |