Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Generating lists from a charset

by TedPride (Priest)
on Dec 24, 2005 at 00:38 UTC ( #518860=note: print w/ replies, xml ) Need Help??


in reply to Generating lists from a charset

use strict; use warnings; our @c = (0..9,'a'..'z','A'..'Z'); build(7); sub build { my ($n, $s) = @_; if (!--$n) { print "$s$_\n" for @c; return; } build($n, "$s$_") for @c; }


Comment on Re: Generating lists from a charset
Download Code
Replies are listed 'Best First'.
Re^2: Generating lists from a charset
by RQZ (Acolyte) on Dec 24, 2005 at 01:24 UTC
    :O
    Impressive!
    Recursion is always better, haha.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://518860]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (9)
As of 2015-07-29 08:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (261 votes), past polls