in reply to Re^4: Using 'keys' on a list (update x2)
in thread Using 'keys' on a list

 sub f { %hash }
- Ron

Replies are listed 'Best First'.
Re^6: Using 'keys' on a list (update x2)
by Anonymous Monk on Jun 30, 2021 at 15:35 UTC
    that's the same as scalar(%hash) not scalar(list), try again
      From the OP:

      "Suppose a function f() returns an even-sized list..."

      - Ron
        From the OP: "Suppose a function f() returns an even-sized list..."

        so what? sub f { %hash } scalar(f) is the same as scalar(%hash)