P is for Practical | |
PerlMonks |
Re^2: Sort - can'tby QM (Parson) |
on Aug 29, 2005 at 01:30 UTC ( [id://487318]=note: print w/replies, xml ) | Need Help?? |
You've failed again to ask your question appropriately.
First the diagnoses: split doesn't work on an array!!! Now you might have something in $sub3, but this doesn't make any sense either: You can't sort a scalar (well, it doesn't do anything interesting) Seems what you really want to do is sort the elements of @array by the last field (numerically), in which case you'll need something like this: But you should really see How (Not) to Ask a Question. -QM
In Section
Seekers of Perl Wisdom
|
|