Re: combinations of 4

From: jon schatz (jon@divisionbyzero.com)
Date: Sun Apr 07 2002 - 16:43:05 EDT


On Sat, 2002-04-06 at 17:01, KF wrote:
> My question is does anyone know how to programatically do this? Do i
> need to make use of bit shifting or something? I need only a program to
> print the list to the screen or something simple. Example output would
> be ...
>
> AAAA
> BBBBB
> ....
> AAAB
> AAAC

perl -e 'foreach (AAAA..ZZZZ) { print $_,"\n";}'

i'm sure someone on this list can golf this down, but this should be
sufficient...

-jon

-- 
jon@divisionbyzero.com || www.divisionbyzero.com
gpg key: www.divisionbyzero.com/pubkey.asc
think i have a virus? www.divisionbyzero.com/pgp.html
"You are in a twisty little maze of Sendmail rules, all confusing." 




This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:28:03 EDT