A
Abhinav
Hi,
Considering the following :
use strict;
use warnings;
my @array = (100,200);
$array[50000] = 300;
How much space is actually used by the array? Is it only for 3 values
($array[0], [1], [50000]), or for *all* the intervening indices also ?
if(defined $array[2000])
returns false. Does this mean that the space is, in fact, not allocated
unless explicitly used?
man perldata yields no answer...any where else where I can look ?
Regards
Abhinav
Considering the following :
use strict;
use warnings;
my @array = (100,200);
$array[50000] = 300;
How much space is actually used by the array? Is it only for 3 values
($array[0], [1], [50000]), or for *all* the intervening indices also ?
if(defined $array[2000])
returns false. Does this mean that the space is, in fact, not allocated
unless explicitly used?
man perldata yields no answer...any where else where I can look ?
Regards
Abhinav