in reply to How to hash without the hash- basic

Simples!

#! perl -slw use strict; my %hash; my @array = qw(1 3 4 55 4 3 4 22 1 3 4 3 2 2 3 34); my $vec1 = my $vec2 = ''; for ( @array ) { if( vec( $vec1, $_, 1 ) ) { vec( $vec2, $_, 1 ) = 1; } else { vec( $vec1, $_, 1 ) = 1; } } $vec2 .= chr(0) x ( length( $vec1 ) - length( $vec2 ) ); $vec1 &= ~$vec2; vec( $vec1, $_, 1 ) and print for 0 .. length( $vec1 ) * 8; __END__ C:\test>933893 22 34 55

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.