in reply to Limit on array size?
Output:use strict; use warnings; use Data::Dumper; my @ASAList; while (<DATA>) { chomp; push(@ASAList, split / /); } print Dumper(\@ASAList); __DATA__ 27 25 52 1 2 3
I added a chomp() as well.$VAR1 = [ '27', '25', '52', '1', '2', '3' ];
You'll still be limited by the memory of your machine, but this will make more efficient use of what you've got.
Might also try pre-extending your array with something like this:
$ASAList[14000000] = 1; @ASAList = ();
|
|---|