in reply to Non-Formula based Text Encoding - with Compression
Aside from my failure to understand what value the output of this code offers, the quality of the code is very poor.
In other words, something more like this:
And then the client can redirect STDOUT to their own file of choice.#!/usr/bin/env perl use strict; use warnings; my @base = ( 'a'..'z', 'A'..'Z', 0..9 ); for my $i (@base) { print "$i\n"; for my $j (@base) { print "$i$j\n"; for my $k (@base) { print "$i$j$k\n"; } } } __END__ =head1 NAME non-forumla-based-text-encoder-with-compression.pl =head1 DESCRIPTION =over 4 =item * Create 242,234 unique codes, 1-3 characters in length, from the characters {a-zA-Z0-9}. =item * 62 (1 char codes) + 3844 (2 char codes) + 238,328 (3 char codes) = 242,234 unique codes. =item * (Somewhat like MIMEbase64 encoding, but my encoding is non-formula based.) =item * ... =back =cut
Now then ... i'd really like to see if someone can get this down to O(N). :)
jeffa
L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
| A reply falls below the community's threshold of quality. You may see it by logging in. |