in reply to Re: Idiom for looping thru key/value pairs
in thread Idiom for looping thru key/value pairs

I did originally have them as lists of lists, but flattening out into the "array of key/value pairs" idea sped up my constructor by about 10%, which was pretty significant.

xoxo,
Andy

%_=split/;/,".;;n;u;e;ot;t;her;c; ".   #   Andy Lester
'Perl ;@; a;a;j;m;er;y;t;p;n;d;s;o;'.  #   http://petdance.com
"hack";print map delete$_{$_},split//,q<   andy@petdance.com   >
  • Comment on Re: Re: Idiom for looping thru key/value pairs

Replies are listed 'Best First'.
(tye)Re2: Idiom for looping thru key/value pairs
by tye (Sage) on May 26, 2001 at 01:12 UTC

    Since you already have an object, I'd really encourage you to consider separating them into two separate parallel lists!

            - tye (but my friends call me "Tye")