in reply to How to keys($array_ref)?
according to perl doc the keys() function will take a reference stored in a scalar
Since 5.14, yes. (And it has to be an unblessed reference.)
Before that, it was a compile time error.