Re: Unknown level of hash

Yitzchak Scott-Thoennes <[email protected]>
Newsgroups gmane.comp.lang.perl.fun
Organization bs"d
Message-ID <[email protected]>
On Tue, Mar 29, 2005 at 11:45:01AM +0200, Alexandre Jousset wrote:
> Yitzchak Scott-Thoennes wrote:
> >To set it, you need to just do the same thing except that at each step
> >instead of keeping the hash element, you keep a reference to it:
> >
> >$entryref = \$hash;
> >$entryref = \$$entryref->{$_} for @a;
> >$$entryref = 1;
> >
> >Note that this will create hashrefs at any undefined levels, even the
> >top one.
> 
> 	I'm sorry but that doesn't work as is on my system: "Not a HASH 
> reference at x.pl line 9.".

Works for me.  Can you show the actual code you are trying?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.