I am trying to debug a Perl script that is giving me the error
Experimental keys on scalar is now forbidden
This seems to be an issue my system having a newer version of perl, but was hoping some can sugegst a quick fix.
The line in question is
foreach my $elemName(keys $grammar -> {$groupName})
grammer was defined as
my $grammar = {};
and groupName comes from
foreach my $groupName (keys %$grammar)
I do not know much about perl, so any help would be appreciated
I have a similar issue with this line
push($DbRef->{def_param}{$par_descr}->{dataset}, $blkDs);
with error Experimental push on scalar is now forbidden ... near "$blkDs)"
I have tried some solutions I have found about dereferencing, but the syntax is very confusing to me.