Help for this page

Select Code to Download


  1. or download this
    $_ = <IN>;
    chomp;
    my @column = split /\t/;
    
  2. or download this
    my @data;
    while(<IN>) {
    ...
        @row{@column} = split /\t/;
        push @data, \%row;
    }
    
  3. or download this
    $row{'sex'} eq 'F' and $row{'body mass index'} > 40 and $row{blood pre
    +ssure'} > 135
    
  4. or download this
    push @data, \%row if $row{'sex'} eq 'F' and $row{'body mass index'} > 
    +40 and $row{blood pressure'} > 135;
    
  5. or download this
    @filtered = grep { $_->{'sex'} eq 'F' and  $_->{'body mass index'} > 4
    +0 and $_->{blood pressure'} > 135 } @data;