in reply to Re^3: Minimize Hash Key Value Combinations
in thread Minimize Hash Key Value Combinations

first you are right.. i made the result manually.. that was a simple mistake.. :)

actually it is an hash tree.. but i dont want to deflect the problem with code snippets..
keys are strings never arrays
i dont agree.. just take a look at Hash::Multikey or perldsc or maybe it is a nested structure like this:
#!/usr/bin/perl -w use strict; use warnings; my %hash; $hash{'number'}{'even'} = [24, 44, 38, 36]; $hash{'number'}{'odd'} = [23, 43, 37, 35]; foreach my $i(keys %hash){ print $i; foreach my $j(keys %{$hash{$i}}){ print "\t".$j."\t"; print join(" ",@{$hash{'number'}{$j}})."\n"; } }
furthermore thats offtopic :)
$perlig =~ s/pec/cep/g if 'errors expected';