Array of Hashes to Hash of arrays for SQL::Abstractby Skeeve (Parson)
|on Mar 18, 2020 at 09:16 UTC||Need Help??|
Skeeve has asked for the wisdom of the Perl Monks concerning the following question:
I just discovered SQL::Abstract because it's used by Mojo::PG
In SQL::Abstract you can write an insert command like this:
This will be created:
I receive JSON data in my script and so my data is like this:
I'm wondering whether or not there is something which would give me the required hash of arrays from my existing array of hashes.
My lengthy attempt is like this:
Is there a better way to achieve this transposition?