perl -v
This is perl 5, version 24, subversion 1 (v5.24.1) built for MSWin32-x64-multi-thread
if (scalar keys $words{$key} == 0) {
Error Message: Experimental keys on scalar is now forbidden at ladder2.pl line 40.
chomp $file;
” needs to be added as the first statement inside the foreach
loop. Otherwise the last filename on each #include
line will not open because of the newline character. Once again, thanks for writing this great article. It has helped me tremendously.
Roy Fulbright
]]>
Can't coerce array into hash at C:\tmp\installed_programs.pl line 12 (#1)
(F) You used an array where a hash was expected, but the array has no
information on how to map from keys to array indices. You can do that
only with arrays that have a hash reference at index 0.
The error occurs on statements in the "foreach" loop. One thing that looks strange is the first statement:
next unless my $software = $software->{DisplayName};
because the foreach already defines a "my $software" variable. Any help you can provide regarding this error would be greatly appreciated. Thanks.