3. Anonymous hash constructor 

my @pets = (
    {
        species => 'cat',
        legs    => 4,
    },
    {
        species => 'budgie',
        legs    => 2,
    },
);

foreach my $pet (@pets) {
    say "My $pet->{species} has $pet->{legs} legs";
}