>>>>> "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
  • ... Zhuang Li
    • ... Jeff Yoak
    • ... Uri Guttman
      • ... Aaron Sherman
        • ... Uri Guttman
    • ... Vladi Belperchinov-Shabanski
      • ... Alexandre Jousset
        • ... Суханов Вадим
          • ... Alexandre Jousset
    • ... Ton Hospel
      • ... Yitzchak Scott-Thoennes
    • ... Yitzchak Scott-Thoennes
      • ... Alexandre Jousset
        • ... Yitzchak Scott-Thoennes
          • ... Alexandre Jousset

Reply via email to