Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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; }

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?
[1nickt]: Question for my learned friends: is there a word meaning "CSV-like" i.e. I want to say that I accept CSV files, but the separator doesn;t have to be a comma. Or is that implicit these days?
[chacham]: dsv
[chacham]: dsv

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2017-07-22 18:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (340 votes). Check out past polls.