in reply to Re^3: Column Heading and Split Function
in thread Title of Column and Split Function

<DATA>; # remove header line $/=undef; # instead of File::Slurp my %rates = split /\s+/, <DATA>; print map { "$_ $rates{$_}\n" } keys %rates; __DATA__ Patient Heart Rates Molly 70 Glenn 69

Replies are listed 'Best First'.
Re^5: Column Heading and Split Function
by Not_a_Number (Prior) on Mar 28, 2013 at 20:07 UTC
    $. > 1 and say join ' ', split while <DATA>;
      holy moly... ;-) (yes, yes, also a ++)
      <>; say <>;