Perl Monk, Perl Meditation | |
PerlMonks |
Re: [raku] what accessors are actually autogenerated for @.array attributes?by choroba (Cardinal) |
on May 06, 2021 at 15:00 UTC ( [id://11132159]=note: print w/replies, xml ) | Need Help?? |
I don't know much about Raku, but the following worked for me:
Interestingly, it also works if I declare the attribute as readonly. See also StackOverflow.
map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
In Section
Seekers of Perl Wisdom
|
|