in reply to Re: Column Heading and Split Function
in thread Title of Column and Split Function
use File::Slurp; $_ = read_file(\*DATA); /$/mg; # skip first line my %rates = /^(\w+)\h+(\d+)/mg; $, = "\t"; print %rates; __DATA__ Patient Heart Rates Molly 70 Glenn 69
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Column Heading and Split Function
by McA (Priest) on Mar 28, 2013 at 17:46 UTC | |
by hdb (Monsignor) on Mar 28, 2013 at 18:52 UTC | |
by Not_a_Number (Prior) on Mar 28, 2013 at 20:07 UTC | |
by McA (Priest) on Mar 28, 2013 at 20:25 UTC | |
by Anonymous Monk on Mar 28, 2013 at 23:37 UTC |