Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

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

by LanX (Sage)
on Jul 01, 2021 at 18:55 UTC ( #11134548=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub f {a => 1, b=>2}
    my %h = (c => 3);
    say keys %h, f();
    #output:
    c
    
  2. or download this
    D:\>perl -Mfeature=say
    sub f {a => 1, b=>2}
    ...
    ca1b2
    
    D:\>
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (4)
As of 2022-12-06 18:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?