Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.4
-
None
Description
iptables.pm generates the following error under perl 5.8.x, 5.10.x, and possibly other older versions:
Type of arg 1 to keys must be hash (not hash element) at iptables.pm line 1404, near "}) " Execution of iptables.pm aborted due to compilation errors (#1) (F) This function requires the argument in that position to be of a certain type. Arrays must be @NAME or @{EXPR}. Hashes must be %NAME or %{EXPR}. No implicit dereferencing is allowed--use the {EXPR} forms as an explicit dereference. See perlref. Uncaught exception from user code: Type of arg 1 to keys must be hash (not hash element) at iptables.pm line 1404, near "}) " Execution of iptables.pm aborted due to compilation errors. at iptables.pm line 1420
The line in question is accessing a hash reference element without explicitly dereferencing the value. The error is not generated with Perl 5.16.x. Apparently, syntax rules got eased up on.