my $text = '0101010101'; my %hash; @hash{ split '', $text } = 1; print scalar keys %hash, "\n";
perl -le 'print+unpack("N",pack("B32","00000000000000000000001000110111"))'
In reply to Re: Re: number of unique characters in a string
by rob_au
in thread number of unique characters in a string
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |