On Jul 9, 2014, at 7:56 PM, John SJ Anderson wrote:
> This foreach loop is looping over the five zip codes in the array...
>
>> print Dumper (@{$entries{$state}});
>
> And printing out the same array each time.
Thanks, John. I wasn't even looking at the printout loop. :\ For
so
On Wed, Jul 9, 2014 at 6:59 PM, SSC_perl wrote:
> If someone could explain what I'm doing wrong, I'd appreciate it. I
> just can't see it.
You're looping over the entries in the array, not the entries in the hash.
> foreach my $state (sort keys %entries) {
> say "The Zip Codes of $
I'm having a problem creating a hash of arrays. The while loop below
works, but it's working too well. ;) Instead of giving me 5 values (from the
example data below), it's giving me 25. I don't understand why it seems to be
"looping" through the push statement.
If someone cou
On Jul 9, 2014, at 2:58 PM, Natxo Asenjo wrote:
>
>
>
> On Wed, Jul 9, 2014 at 10:35 PM, Jim Gibson wrote:
>
> On Jul 9, 2014, at 1:20 PM, Natxo Asenjo wrote:
>
> > hi,
> >
> > i have an array of arrays which contains equal elements. I would like to
> > isolate the unique values.
>
> Do y
On Wed, Jul 9, 2014 at 10:35 PM, Jim Gibson wrote:
>
> On Jul 9, 2014, at 1:20 PM, Natxo Asenjo wrote:
>
> > hi,
> >
> > i have an array of arrays which contains equal elements. I would like to
> isolate the unique values.
>
> Do you mean that the subarrays contain equal NUMBERS of elements?
ye
On Jul 9, 2014, at 1:20 PM, Natxo Asenjo wrote:
> hi,
>
> i have an array of arrays which contains equal elements. I would like to
> isolate the unique values.
Do you mean that the subarrays contain equal NUMBERS of elements?
>
> I have tried using the uniq method of List::MoreUtils but it
hi,
i have an array of arrays which contains equal elements. I would like to
isolate the unique values.
I have tried using the uniq method of List::MoreUtils but it apparently
does not work with an AoA.
This is what I tried:
for my $i ( @$data_ref ) {
push $seen_ref, [ $i->{'value1'}, $i->