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.
on the second thought :
my @attrs= ;
my Pet @list = map {
{ qw{ name type breed } ^=> ($^x, $^y, $^z) }
} qw{
fido dog collie
fluffy cat siamese
};
or
my @attrs = qw{ name type breed }
my Pet @list=qw{
fido dog collie
fluffy cat siamese
} ~~ sub (@x) { map { _ => _ } @attrs x Inf ^, @x }
~~ sub (@x) { map { { _ , _ , _ } } @x ;
arcadi