In-reply-to: <[EMAIL PROTECTED]>

>
>     my Pet @list = qm : << name type breed >> {
>         fido     dog   collie
>         fluffy   cat   siamese
>     };
>

>That's still a lot easier to type than some of the alternatives I've
>had to do for larger structures.

why ?


my @attrs=qw{ name type breed } ; 
my Pet @list = qw {
         fido     dog   collie
         fluffy   cat   siamese
     } ~~ sub (@x) { map  ->($x,$y,$z){
                            { @attrs ^=> ($x,$y,$z) } @x
                   }

or

my Pet @list = for qw {
         fido     dog   collie
         fluffy   cat   siamese
     } -> ($x,$y,$z){
     { @attrs ^=> ($x,$y,$z) }
     }

if for works likek map .

arcadi


Reply via email to