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!
In reply to Re: each on reference is experimental take 2
by 1nickt
in thread each on reference is experimental take 2
by natxo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |