Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^4: making presence/absence table from a hash of arrays

by jwkrahn (Monsignor)
on Sep 06, 2011 at 17:02 UTC ( #924432=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $header_row= 'one two three four five';
    ...
    ...
    {
       $name2Index{$col_head} = $col++;
    }
    
  2. or download this
    my @header_row = qw/ one two three four five /;
    ...
    ...
    ...
    @name2Index{ @header_row } = 0 .. $#header_row;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://924432]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2017-11-19 07:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (278 votes). Check out past polls.

    Notices?