Hope you like it :)#!/usr/bin/perl sub generate_list{$_=q!$;=@_[0];$;--;$_='(0...9,"a"..."z","A"..."Z")'; +for($i=0;$i<=$;;$i++){$*.="\@t$i=$_;";$@.="for(\$c$i=0;\$c$i<=\$#t$i; +\$c$i++){";}$.=$*.$@;$:='print';for($,=0;$,<=$;;$,++){$:.="\$t$,\[\$c +$,\].";}$:.='$/;'.'}'x($;+1);return$..$:;!;eval eval}generate_list 2;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Generating lists from a charset
by TedPride (Priest) on Dec 24, 2005 at 00:38 UTC | |
by RQZ (Acolyte) on Dec 24, 2005 at 01:24 UTC | |
|
Re: Generating lists from a charset
by QM (Parson) on Dec 23, 2005 at 20:07 UTC | |
by BrowserUk (Patriarch) on Dec 23, 2005 at 20:24 UTC | |
by QM (Parson) on Dec 24, 2005 at 14:44 UTC | |
by BrowserUk (Patriarch) on Dec 24, 2005 at 16:02 UTC | |
by QM (Parson) on Dec 25, 2005 at 20:53 UTC | |
by RQZ (Acolyte) on Dec 23, 2005 at 23:09 UTC | |
|
Re: Generating lists from a charset
by radiantmatrix (Parson) on Dec 23, 2005 at 18:57 UTC | |
|
Re: Generating lists from a charset
by jdalbec (Deacon) on Dec 24, 2005 at 22:06 UTC | |
|
Re: Generating lists from a charset
by Anonymous Monk on Dec 23, 2005 at 15:56 UTC | |
by blazar (Canon) on Dec 27, 2005 at 13:13 UTC |