Then sort starts to iterate on rows of your array and access their third (->[2]) element. This of course fails, as your first row is undef.
Use your Perl arrays with zero-based indices as was intended by design :)
In reply to Re: how to sort multi-dimensional arrays
by kappa
in thread how to sort multi-dimensional arrays
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |