in reply to How To Do This Better?
is going to be quite a bit faster than anything involving split() or a regexp.while(my $c = getc(FILE)) { $count{lc($c)}++ if $c=~/[a-zA-Z]/; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Re: How To Do This Better?
by ahunter (Monk) on Apr 15, 2000 at 00:14 UTC | |
by NoTwoGroo (Initiate) on Apr 15, 2000 at 01:12 UTC |