SPUG: In over my head with hashes of arrays of arrays

Ivan Heffner iheffner at gmail.com
Sat Jul 23 23:56:55 PDT 2005


You seem to be expressing some concerns about the persistence of anonymous 
arrays. You can sleep easy knowing that anonymous arrays can persist just as 
long, sometimes longer, than named arrays. As long as Perl thinks there is 
at least one reference to a data structure, be it a simple scalar or a 
complex multi-dimensional array of hashes of array of arrays, that data will 
persist. That means as long as you have your hash key that points to an 
anonymous array, that array will persist, as well as any anonymous arrays in 

If you have not seen it, I recommend picking up a copy of Randall Schwartz's 
book Learning Perl's Objects, References, and
It's a great bridge between Learning
Perl<http://www.oreilly.com/catalog/learnperl4/>and Advanced
Perl Programming <http://www.oreilly.com/catalog/advperl2/>.


On 7/22/05, Duane Blanchard <dblanchard at gmail.com> wrote:
> Hi Spuggers,
> I'm working on a hairy data set for which I need a hash in which the
> values are arrays which each have as one of their elements an
> additional array. My assumption is that I will be OK using anonymous
> arrays, but before I stay up all night trying to figure out that my
> assumption is wrong, I thought I'd ask someone.
> Thanks, yet again,
> Duane
> --
> Duane Blanchard
> 206.934.5873
> There are 10 kinds of people in the world;
> those who know binary and those who don't.
> _____________________________________________________________
> Seattle Perl Users Group Mailing List
> POST TO: spug-list at pm.org
> SUBSCRIPTION: http://mail.pm.org/mailman/listinfo/spug-list
> MEETINGS: 3rd Tuesdays, Location: Amazon.com <http://Amazon.com> Pac-Med
> WEB PAGE: http://seattleperl.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.pm.org/pipermail/spug-list/attachments/20050724/517c7c64/attachment.html

More information about the spug-list mailing list