How would I call attributes? Specifically, what if I'm calling a list
attribute from a scalar object?
my Dog $spot; my Dog @pack; $spot->@.legs; # INCORRECT (I hope) [EMAIL PROTECTED]; # INCORRECT? @spot.legs; # What if you also have @spot declared?
As a guess, I'd say that it's
$spot.legs;
because as I understood A12 the only way to get at an attribute is through an accessor method (be it autogenerated or otherwise), which is quite definitely going to look like that. At least, I hope it is. And it doesn't matter that it returns a list, because the funny characters don't mean the same thing they mean in Perl 5 - at least, not all of the time. They're a bit saner now (IMO).