in reply to How to filter the array with id of max. date.
Why is "ashokpj" in your output, but not "raja"? Both have the same date.
I think we need a tighter spec to know what to produce.
In any case, your @array looks like you wanted an AoA instead:
As you wrote it, your @array was a flat set of values. Fixing that will probably help.my @array = ( ['ashok',15,'2006-01-01'], ['ashokpj',15,'2006-02-01'], ['ravi',56,'2006-03-01'], ['raja',56,'2006-02-01'], );
After Compline,
Zaxo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to filter the array with id of max. date.
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 |