Do sparse arrays take up full memory?

From: Ian (giblin_at_panix.com)
Date: 02/25/05


Date: 25 Feb 2005 07:28:42 -0800

I always thought that

my @array;
$array[0] = 1;
$array[99] = 1;

 ....would only use two array elements' worth of memory. After reading
some of the documentation, I'm not so sure. What's the real answer
please?

Thanks!
Ian.



Relevant Pages

  • Re: trouble merging files using nested loop to read files
    ... I'm just getting going at this and the documentation, while there is a lot of it, is somewhat cryptic... ... Tad McClellan wrote: ... Reading the entire file into memory when you only need a line at ...
    (comp.lang.perl.misc)
  • TeX/LaTeX isnt easy
    ... without reading quite a lot documentation. ... Error messages aren't always ... I thought this might be worth discussing in its ...
    (comp.text.tex)
  • Re: Documentation tool
    ... I haven't used it much but I remember reading about it and LaTeX in its ... documentation. ... From memory it seems to be able to document in just about any ...
    (comp.lang.java.softwaretools)
  • Re: Code density and performance?
    ... Heck, IPF memory requirements make ... It wasn't when the Alpha was designed. ... |> You mean the "POSIX" documentation, ... |>> You may regard breaking standards without even documenting the ...
    (comp.arch)
  • Re: Pass array of worksheets to ActiveX DLL (VB6)
    ... After reading what you had to say I Googled some of his posts ... faster for them to develop their own applications, ... reach for the documentation every couple of minutes to find out "so ... Hank Scorpio ...
    (microsoft.public.excel.programming)