Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

creating a subroutine for accessing hash of arrays

by jonnyfolk (Vicar)
on Mar 27, 2004 at 06:23 UTC ( [id://340223]=perlquestion: 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
    while ( (my $key, my $value) = each %partners) {
        if ($item eq $key) {
    ...
            ##another, different action;
        }
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://340223]
Approved by davido
Front-paged by grinder
help
Chatterbox?
and the web crawler heard nothing...

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

    No recent polls found