Keep It Simple, Stupid | |
PerlMonks |
Re^4: Determining uniqueness in a string.by QM (Parson) |
on Oct 03, 2005 at 19:59 UTC ( [id://497043]=note: print w/replies, xml ) | Need Help?? |
You're missing the closing }) (perhaps a copy/paste error?)
I also don't care for the assumption that it's exactly 10 characters when it gets to uniq. If that requirement changes, uniq becomes broken without being modified. While this is perhaps simplistic, the fact that the code is separated means it's easy to update one without seeing the other, and it quietly fails. uniq would be better named pannumeric. -QM
In Section
Seekers of Perl Wisdom
|
|