I setup an multidimetional array of data. ( I loading data base files into
memory.)
I wan't to sort the records by field 0
But when I sort this referenced array ( multidimetional array ) I get an out
of memory error.
There are 80 or so records and each record has 20 fields each field varies
but none are larger than 20 char.
Why am I getting an out of memory I have 10mb of free RAM!! And plenty of
swap space!!
OR a better question would be. can I do this differently? if so. how ?
Any help would be VERY much appreciated!!!
@sorted = sort { $data[$a] [0] <=> $data[$b] [0] } @data;
print $cgi_obj->header;
print $cgi_obj->start_html($theatre);
print "<table border=1 width=500>\n";
foreach $array_ref (@sorted)
{
print @$array_ref;
}
print "</table>\n";
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]