Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: keys with an expression

by lune (Pilgrim)
on Nov 20, 2013 at 15:04 UTC ( [id://1063540]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    (map { $_ => 1 } @array)
    
  2. or download this
    my @unique = keys (1,1,2,3,2,2);
    
  3. or download this
    my @unique = keys @array;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (1)
As of 2024-04-24 14:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found