in reply to Sort - can't
sorry - i was abbreviating. the only place i'm having a problem is in the sorting. so, let me start over:
array looks like this: category_Title Words_1 category_Title Words_2 category_Title Words_3 category_Title Words_4 ($sub1, $sub2, $sub3) = split (/\_/, @array,3); $sub3 = sort { $b <=> $a } $sub3; doesn't work. i've also tried: my @newarray = ($sub1,$sub2,$sub3); @newarray = sort { $a->[2] cmp $b->[2] } @newarray;
Malaga
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Sort - can't
by QM (Parson) on Aug 29, 2005 at 01:30 UTC | |
Re^2: Sort - can't
by fishbot_v2 (Chaplain) on Aug 29, 2005 at 01:28 UTC | |
Re^2: Sort - can't
by sk (Curate) on Aug 29, 2005 at 01:36 UTC | |
Re^2: Sort - can't
by chas (Priest) on Aug 29, 2005 at 01:36 UTC | |
Re^2: Sort - can't
by tlm (Prior) on Aug 29, 2005 at 01:33 UTC | |
Re^2: Sort - can't
by malaga (Pilgrim) on Aug 31, 2005 at 05:38 UTC | |
by QM (Parson) on Aug 31, 2005 at 22:14 UTC |
In Section
Seekers of Perl Wisdom