in reply to each on reference is experimental take 2
Hi natxo,
Try dereferencing with full syntax:
Output:#!/usr/bin/perl use strict; use warnings; use feature 'say'; my $data = { name => { foo => 'bar', baz => 'qux' } }; while ( my ( $key, $val ) = each %{ $data->{'name'} } ) { say "$key: $val"; } __END__
foo: bar baz: qux
Hope this helps!
|
|---|