Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Mapping to an associative hash

by shenme (Priest)
on Sep 16, 2003 at 21:20 UTC ( [id://291969]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      my  @field_names = qw( id username domain .... prime_phones );
      my  @field_values = split /\t/;
      @input_data{@field_names} = @field_values;
    
  2. or download this
      my  @field_names = qw( id username domain .... prime_phones );
      my  @field_values = split /\t/;
      for( my $i=0; $i<@field_values; ++$i ) {
        $input_data{$field_names[$i]} = $field_values[$i];
      }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (12)
As of 2024-04-16 07:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found