ashokpj has asked for the wisdom of the Perl Monks concerning the following question:
hello monks,
I have a problem in filtering the array. with max. date. for corresponding id, my array is like.
@array = ( ['ashok',15,'2006-01-01'], ['ashokpj',15,'2006-02-01'], ['ravi',56,'2006-03-01'], ['raja',56,'2006-02-01']);
requried output:
@res = ( ['ashokpj',15,'2006-02-01'], ['ravi',56,'2006-03-01'] );
Thanks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to filter the array with id of max. date.
by Zaxo (Archbishop) on Apr 10, 2006 at 05:49 UTC | |
by ashokpj (Hermit) on Apr 10, 2006 at 06:25 UTC | |
by Zaxo (Archbishop) on Apr 10, 2006 at 06:43 UTC | |
by Anonymous Monk on Apr 10, 2006 at 06:56 UTC | |
|
Re: How to filter the array with id of max. date.
by johngg (Canon) on Apr 10, 2006 at 14:19 UTC |