----- Original Message -----
From: Xavier Noria <[EMAIL PROTECTED]>
Date: Wednesday, May 4, 2005 3:03 pm
Subject: Re: Howto Dynamically Combine Multiple Array in HoA
> my %hoa = @_;
> while (my $keys = $iter->next)
> {
> # given a representative in $keys generate the one we need
> my $composite_key = join '', sort { ... } @$keys;
> Whether a sort is fine or not depends on details of the problem to
> solve though, but you see the issues to take into account.
Thanks for your explanation, you are right it was broken.
However apart from your suggestion, this also worked:
my $iter = Algorithm::ChooseSubsets->new([ sort keys %hoa], 2, 1);
Thanks so much.
---
Regards,
Edward WIJAYA
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>