Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

creating a subroutine for accessing hash of arrays

by jonnyfolk (Vicar)
on Mar 27, 2004 at 06:23 UTC ( #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? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2023-01-29 14:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?