in reply to Re: number of unique characters in a string
in thread number of unique characters in a string
my $text = '0101010101'; my %hash; @hash{ split '', $text } = 1; print scalar keys %hash, "\n";
perl -le 'print+unpack("N",pack("B32","00000000000000000000001000110111"))'
|
---|
Replies are listed 'Best First'. | |
---|---|
Hash syntax tidbit
by crenz (Priest) on Mar 01, 2003 at 17:54 UTC | |
Re: Re: Re: number of unique characters in a string
by genecutl (Beadle) on Mar 03, 2003 at 23:41 UTC |