Hi, given an array: @a = ('E1', 'E2', ..., 'En'); 

 

Is there an easy way, hopefully one liner, to do the following without a
loop? If not, will Perl support this in Perl 6?

 

$hash->{E1}->{E2}->...->{En} = 1;

 

 

Thanks,

 

john

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

Reply via email to