my @sharedArray = map 0+$_, split ' ', $lineOfData;; #### my @a = 1.. 1e6;; ## takes 62 MB. printf "the number is: %d\n", $_ for @a;; ## causes no memory growth print "the number is: $_\n" for @a;; ## Causes the memory to grow to 110MB.