Think about Loose Coupling | |
PerlMonks |
Re: Push to array as part of Structby choroba (Cardinal) |
on Sep 10, 2024 at 14:14 UTC ( [id://11161677]=note: print w/replies, xml ) | Need Help?? |
I guess you're working with Class::Struct. You don't show enough code so I can't tell you directly what to do, but I was able to create an array of the structures and populate an array reference inside:
Beginning of the output:
Update: Fixed the code example.
map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
In Section
Seekers of Perl Wisdom
|
|