# Note use of {} (same as for accessing hash elem) my $ref_to_anon_hash = { foo => 'bar' }; # Note use of () (same as for accessing array elem) my $ref_to_anon_array = [ 1, 2 ];