Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I used to access my hash of hashes with the following in my old Perl (in a foreach my $word loop):
my @variants = keys $hash{$word}{variants};
In Perl 5.24 I get the following error:
Experimental keys on scalar is now forbidden
What is the right way to write it now?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Experimental keys on scalar is now forbidden
by haukex (Archbishop) on May 09, 2018 at 10:45 UTC | |
|
Re: Experimental keys on scalar is now forbidden
by huck (Prior) on May 09, 2018 at 10:47 UTC |