Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

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

by Anonymous Monk
on Jun 30, 2021 at 14:38 UTC ( [id://11134497]=note: print w/replies, xml ) Need Help??


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

That's wrong.

got an example of a "list in scalar context" or "comma operator in scalar context" or whatever that returns something other than the last value? wantarray is cheating

Replies are listed 'Best First'.
Re^5: Using 'keys' on a list (update x2)
by The Perlman (Scribe) on Jun 30, 2021 at 15:29 UTC
     sub f { %hash }
    - Ron
      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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (3)
As of 2024-04-26 01:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found