Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (11)
As of 2016-09-26 17:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (485 votes). Check out past polls.