Just another Perl shrine | |
PerlMonks |
Re^2: Is there a way to make a JSON out of multiple records from MySQL?by choroba (Cardinal) |
on May 11, 2022 at 12:55 UTC ( [id://11143793]=note: print w/replies, xml ) | Need Help?? |
> my $typehint_persons = [ ($typehint_person) x @rawRecords ]; For arrays of the same type, there's a function where you don't need to know the number:
map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
In Section
Seekers of Perl Wisdom
|
|