Help for this page

Select Code to Download


  1. or download this
    my @sharedArray = map 0+$_, split ' ', $lineOfData;;
    
  2. or download this
    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 gro
    +w to 110MB.