in reply to Re^2: keys on scalar warnings and lack thereof
in thread keys on scalar warnings and lack thereof

What exactly do you expect from broken code?

$ 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 sli +ce) at -e line 1, at EOF Execution of -e aborted due to compilation errors.

Please note the not index/value array slice , because that's what's fed into keys.

Try keys %{$_}[0] and compare the error messages...

Update

Admittedly, I've never used this before: Index/Value-Array-Slices

Cheers Rolf
(addicted to the Perl Programming Language :)
see Wikisyntax for the Monastery