Forgive me if this isn't the first time someone has done something like this. I was unable to find such an instance. Hopefully you will be as amused as I was...
#!/usr/bin/perl -w
use strict;
my $count;
my $bits = ~(0);
while ($bits) {
$bits >>= 1;
$count++;
}
print "$count bit words are being used.\n";