my %data = (
        k1 => 'a',
        k2 => ['b', 'c'],
        k3 => ['d', 'e', 'f']
        k4 => 'a'
);

I want to get all the possible combinations:

k1 => a
k2 => b
k3 => d
k4 => a

k1 => a
k2 => c
k3 => d
k4 => a

k1 => a
k2 => b
k3 => e
k4 => a

k1 => a
k2 => c
k3 => e
k4 => a

k1 => a
k2 => b
k3 => f
k4 => a

k1 => a
k2 => c
k3 => f
k4 => a

On a larger list ( 20 items) what's a good way to do this? My head is just kind of stuck on this...

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to