in reply to Re: Sort multi-dimensional array based on dereferenced value - out of memory error
in thread Sort multi-dimensional array based on dereferenced value - out of memory error
Aha! Thanks to both of you (Anonymous Monk and moritz) for the clear explanation. Indeed, it works fine when not using $a and $b as indexes.
Additionally, I noticed that when running with -w, perl tells me exactly what I was doing wrong:
$ perl -w foo.pl Use of reference "ARRAY(0x8153c28)" as array index at foo.pl line 21. Out of memory!
Lesson learned!
|
|---|