Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: creating a subroutine for accessing hash of arrays

by etcshadow (Priest)
on Mar 27, 2004 at 07:03 UTC ( [id://340228]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    while ( (my $key, my $value) = each %partners) {
        if ($item eq $key) {
    ...
            push (@allmembers, @partners_split);
        }
    }
    
  2. or download this
    sub do_thing {
        my ($partners,$item,$action) = @_;
    ...
        
        # do other stuff with %partners, $item, $key, $value, etc
    });
    
  3. or download this
    while ( (my $key, my $value) = each %partners) {
        if ($item eq $key) {
            ...
        }
    }
    
  4. or download this
    ------------
    :Wq
    Not an editor command: Wq
    

Log In?
Username:
Password:

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

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

    No recent polls found