Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: creating a subroutine for accessing hash of arrays

by etcshadow (Priest)
on Mar 27, 2004 at 07:03 UTC ( #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? | Other CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2023-01-27 13:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?