generating a wordlist from an array of arrays
- From: mb@xxxxxxxxxxx (Mark Berger)
- Date: Thu, 29 Sep 2005 19:26:51 +0200
hey list. i stuck with gererating a wordlist from a changing
multidimensional array. each entry in the array contains a list with the
possible values.
fe:
@wordlayout = ((a, b), # possible values for 1st char
(c), # possible values for 2nd char
(d, e, f)); # possible values for 3rd char
the following wordlist should be generated:
acd
ace
acf
bcd
bce
bcf
the only thing i came up with so far, is to generate some for loops
based on the array structure (how many chars, with how many posible
values) on fly and pass this to eval. pretty ugly (at least the way i
thought it out).
any hints on how to solve this? probably using recursion but i got no
idea about it right now. and sorry for my bad english, hope i can make
my problem understandable.
.
- Follow-Ups:
- Re: generating a wordlist from an array of arrays
- From: Adriano Ferreira
- Re: generating a wordlist from an array of arrays
- From: Gerard Robin
- Re: generating a wordlist from an array of arrays
- From: Jeff 'japhy' Pinyan
- Re: generating a wordlist from an array of arrays
- Prev by Date: RE: Date in perl
- Next by Date: Perl debugging
- Previous by thread: Re: Date in perl
- Next by thread: Re: generating a wordlist from an array of arrays
- Index(es):
Relevant Pages
|
|