go ahead... be a heretic | |
PerlMonks |
Re: number of unique characters in a stringby pfaut (Priest) |
on Mar 01, 2003 at 04:10 UTC ( [id://239640]=note: print w/replies, xml ) | Need Help?? |
Update: I posted this because it was faster than a hash based solution but OM_Zen's idea with rob_au's adjustment is even faster. I'd bench merlyn's Inline::C version, but I don't have Inline::C installed...
In Section
Seekers of Perl Wisdom
|
|