in reply to seeking in hash data structure
It's not clear from your post what exactly you are trying to do, but I think I have some idea. Is there any reason why something like the following isn't good enough?
-driver8
That is, as opposed to:$hash{'companies'}{'microsoft'}{'people'}{'steve ballmer'} = 'bills bu +lldog'; $hash{'companies'}{'cross over'}{'supports'} = ['iTunes', 'photo shop' +];
I'm also not sure what you wanted to accomplish with \$hashref = $%hashref{foobar}, but I think it's wrong in too many ways to even list.add_to_hash(\%hash,'scalar','companies-microsoft-people-steve ballmer' +,'bills bulldog'); add_to_hash(\%hash,'list','companies-cross over-supports','iTunes','ph +oto shop');
-driver8
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: seeking in hash data structure
by Maze (Sexton) on Oct 26, 2006 at 21:16 UTC |
In Section
Seekers of Perl Wisdom