ネストされた for/foreach ループでハッシュを使用しようとしています。ソースを参照
strict
それは言う
Global symbol "$mapping" requires explicit package name at ./test2.pl line 39.
Execution of ./test2.pl aborted due to compilation errors.
なしstrict
で、
Use of uninitialized value $mapping in hash element at ./test2.pl line 46, <$fh> line 8.
Use of uninitialized value in concatenation (.) or string at ./test2.pl line 46, <$fh> line 8.
print $hashref->{$mapping}
出力では空です。
エラーは何ですか?