Re: Unknown level of hash

[email protected] (Uri Guttman)
Newsgroups perl.fwp
Message-ID <[email protected]>
>>>>> "AS" == Aaron Sherman <[email protected]> writes:

  AS> On Mon, 2005-03-28 at 18:43, Uri Guttman wrote:
  >> >>>>> "ZL" == Zhuang Li <[email protected]> writes:
  >> 
  ZL> Hi, given an array: @a = ('E1', 'E2', ..., 'En'); 
  ZL> Is there an easy way, hopefully one liner, to do the following without a
  ZL> loop? If not, will Perl support this in Perl 6?
  >> 
  >> 
  ZL> $hash->{E1}->{E2}->...->{En} = 1;

  AS> I'm not sure I see P6 as solving this problem (though it's just as easy
  AS> in P6 as P5). What you're asking for is:

i recall the a thread about the dim() function that converts an array
to dimensional indices.

uri

-- 
Uri Guttman  ------  [email protected]  -------- http://www.stemsystems.com
--Perl Consulting, Stem Development, Systems Architecture, Design and Coding-
Search or Offer Perl Jobs  ----------------------------  http://jobs.perl.org
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.