Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Column Heading and Split Function

by hdb (Prior)
on Mar 28, 2013 at 16:02 UTC ( #1025991=note: print w/replies, xml ) Need Help??


in reply to Title of Column and Split Function

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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1025991]
help
Chatterbox?
[perldigious]: jedikaiti: Breakout your Gustav Holst Recordings.

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (13)
As of 2017-07-24 15:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (355 votes). Check out past polls.