in reply to Very Large Hex Combinations
If you have a 64-bit Perl, a simple
will keep you occupied for 168351 years if you can print a billion lines per second.for my $x (0 .. 0x7FFFFFFFFFFFFFFF) { printf "%016x\n", $x }
For a 32 bit Perl, use something like:
for the same range and running time.for my $x1 (0 .. 0x7F) { for my $x2 (0 .. 0xFFFFFFF) { for my $x3 (0 .. 0xFFFFFFF) { printf "%02x%07x%07x", $x1, $x2, $x3; } } }
|
---|
In Section
Seekers of Perl Wisdom