Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Array consolidating values

by johngg (Canon)
on Oct 07, 2019 at 14:43 UTC ( [id://11107137]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use 5.026;
    use warnings;
    ...
    say qq{Server $_ is in groups },
       join q{, }, sort @{ $inGroups{ $_ } }
       for sort keys %inGroups;
    
  2. or download this
    %inGroups = (
                  'server02' => [
    ...
    Server server02 is in groups serversA, serversB, serversC, serversD
    Server server03 is in groups serversC
    Server server04 is in groups serversA, serversB, serversC
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2024-04-26 07:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found