
casManG
Deleted
Mar 13, 2000, 2:09 PM
Post #3 of 6
(492 views)
|
Hey Cure, Thanks for that but I was stupid and forgot to mention that I dont want to print but I want to store what you have it printing back into an array so that if I just have a print @arrayname; Then it would print sorted. Can this be done? Sorry for not being more clear before. Thanks casManG -ACTUALLY- I think I got it working now using a push. Please tell me if I am doing this a bad way but here is what I have: map { push (@casManG, $_->[0]) } sort { $a->[1] cmp $b->[1] } map{ [$_ , split(/\|/)] } @data ; Which puts it into the @casManG. Is this a good way to do it? Later casManG [This message has been edited by casManG (edited 03-13-2000).]
|