$ perl -E' $_[0] = {}; say keys %$_[0]' Experimental keys on scalar is now forbidden at -e line 1. Type of arg 1 to keys must be hash or array (not index/value array slice) at -e line 1, at EOF Execution of -e aborted due to compilation errors.