$ perl -e'my $x = { }; keys $x;' Experimental keys on scalar is now forbidden at -e line 1. Type of arg 1 to keys must be hash or array (not private variable) at -e line 1, at EOF Execution of -e aborted due to compilation errors.