Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

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

by LanX (Saint)
on Jul 01, 2021 at 18:55 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others studying the Monastery: (2)
As of 2024-04-16 19:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found