![]() |
|
Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Sort and pushby Bloodnok (Vicar) |
on May 15, 2009 at 09:48 UTC ( #764226=note: print w/replies, xml ) | Need Help?? |
As targetsmart says, you should define the nature of the sort you require.
That being said, using the default (alphbetic) sort (and assuming @datas & amp; @arr are the source & result arrays respectively), you'd use something like... BTW, you do realise that, within the loop in your snippet, you modify the fifth element of @data and then only use the first 2 elements of said array - by pushing a concatenation of them onto the result array.
A user level that continues to overstate my experience :-))
In Section
Seekers of Perl Wisdom
|
|