use strict; use warnings; my %hrates; while( <DATA> ) { chomp; next if /^Patient/; my ($name, $heartrate) = split; $hrates{$name} = $heartrate; } print %hrates; __DATA__ Patient Heart Rates Melly 70 Glenn 69
In reply to Re: Column Heading and Split Function
by hdb
in thread Title of Column and Split Function
by eepvesity
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |