Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^3: One-liner to join keys on a two-dimensionnal hash ?

by ikegami (Patriarch)
on Dec 29, 2021 at 15:07 UTC ( #11140009=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @uc = ( uc("abc"), uc("def") );
    
    ...
         v
    
    my @uc = map { uc($_) } "abc", "def";
    
  2. or download this
    my %h = ( "abc" => 1, "def" => 1 );
    
    ...
         v
    
    my %h = map { $_ => 1 } "abc", "def";
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (8)
As of 2023-06-05 09:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you go to conferences?






    Results (24 votes). Check out past polls.

    Notices?