Hashes are good at determining uniqueness. Here's an example:
sub uniq { my %hash; @hash{ split //, $_[0] } = (); return length $_[0] == keys %hash }
Dave
In reply to Re: Determining uniqueness in a string.
by davido
in thread Determining uniqueness in a string.
by Yzzyx
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |