Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^5: Using 'keys' on a list (update x2)

by The Perlman (Scribe)
on Jun 30, 2021 at 15:29 UTC ( [id://11134499]=note: print w/replies, xml ) Need Help??


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)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11134499]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2024-04-24 11:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found