⭐ in reply to How do I make an array of hashes?
You can also use normal array operations (such as push) to modify an array:my @array = ( { 'name' => 'Chuck', 'job' => 'roustabout', }, { 'name' => 'CowboyNeal', 'job' => 'code monkey', }, );
See perlman:perldsc for more information.push @array, { 'name' => 'vroom', 'job' => 'stacking blocks' }; print $array[0]->{name};
In Section
Seekers of Perl Wisdom