NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
uniting the array and hash in the symbol table (Score:1)
Reply to This
Re: (Score:1)
rjbs
Re: (Score:1)
Re: self referencing data structure (Score:1)
As you construct the second and third parts, you can reference the first copy:
Then, dumping it out, you see:
Re: (Score:1)
Alternatively, perhaps you could keep just one copy of the structure, and have methods to look up value different ways as-needed, without having whole other structures pre-built, if they if they might not be used.
That's what I did, effectively. There is on structure, an array of pairs, and methods that let you do the normal things. You can say "give me the values with name Foo" and it does. It just uses a linear search.
Since Email::Simple 2 will have a Header object with a known interface, a more memory-hungry but faster impleme
rjbs