Complex data structures
previous slidetable of contentsnext slide

my $user = [
             {
               username => 'jbloggs',
               fullname => 'Joe Bloggs'
             },
             {
               username => 'bsmith',
               fullname => 'Bob Smith'
             }
           ];

print $user->[1]->{fullname}, "\n";

Bob Smith

print ${$$user[1]}{fullname}, "\n";

Bob Smith