Help for this page

Select Code to Download


  1. or download this
    my %g = ();
    my @innerKeys = qw/ specie gener age haircolor /;
    ...
     my $name = shift @vals;
     @{$g{$name}}{ @innerKeys } = @vals;
    }
    
  2. or download this
      my $csv = Text::CSV->new();
      open FILE, $filename or die "couldn't open file '$filename': $!";
    ...
        # Or a common/generic usage might be:
        push @rows, $row;
      }