in reply to Re^2: Type of arg 1 to splice must be array (not keys)
in thread Type of arg 1 to splice must be array (not keys)

Would you prefer --$max >= 0?