Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

RE: Re: Populating a Hash: Can someone help me to understand?

by merlyn (Sage)
on Sep 19, 2000 at 19:11 UTC ( #33101=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    while (my $key = shift @keys and my $value = shift @values) {
      $hash{$key} = $value;
    }
    
  2. or download this
    while (defined (my $key = shift @keys) and defined(my $value = shift @
    +values)) {
      $hash{$key} = $value;
    }
    
  3. or download this
    while (@keys and @values) {
      $hash{shift @keys} = shift @values;
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2020-05-30 19:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (173 votes). Check out past polls.

    Notices?