Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Merging Arrays into a Hash with Substitutions

by broquaint (Abbot)
on Apr 07, 2004 at 16:00 UTC ( [id://343317]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    while ( my @row = $dbQuery->fetchrow_array() ) {
      @info{@$headings} = map { defined ? $_ : "" } @row;
    }
    
  2. or download this
    my @r = (1, 2, undef, 3, 4);
    my %h;
    ...
              'ghi' => ''
            };
    

Log In?
Username:
Password:

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

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

    No recent polls found