Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

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

by ikegami (Patriarch)
on Dec 29, 2021 at 14:44 UTC ( [id://11140006]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $expr =
       join '|',
          map { keys( %{ $replaces{$_} } ) }
             keys( %replaces );
    
  2. or download this
    my @keys;
    for ( keys( %replaces ) ) {
    ...
    }
    
    my $expr = join '|', @keys;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (2)
As of 2024-04-20 11:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found