Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Words and Numbers to hash

by mrras25 (Acolyte)
on Jan 08, 2014 at 23:21 UTC ( [id://1069878]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $content = "Points/Game 80.5  Opp Points/Game 69.7  Avg Score Margin +
    +10.8  Opp Avg Score Margin -10.8  Assists/Game 16.5  Opp Assists/Game
    + 12.2  Total Rebounds/Gm 39.3  Opp Total Rebounds/Gm 36.7  Assists/FG
    +M 0.557  Opp Assists/FGM 0.472  Assists/Turnover 1.259  Opp Assists/T
    +urnover 0.712";  
    $content .= "Effective FG  51.0  Opp Effective FG  47.5  FTA/FGA 0.409
    +  Opp FTA/FGA 0.348  Free Throw  65.4  Opp Free Throw  64.6  Three Po
    +int  29.2  Opp Three Point  30.4  Two Point  53.6  Opp Two Point  48.
    +2  Shooting  47.3  Opp Shooting  43.5  Shooting Efficiency 1.080  Opp
    + Shooting Efficiency 1.007  FGM/Game 29.5  Opp FGM/Game 25.8  FGA/Gam
    +e 62.5  Opp FGA/Game 59.3  3PM/Game 4.7  Opp 3PM/Game 4.8  3PA/Game 1
    +6.1  Opp 3PA/Game 15.9  FTM/Game 16.7  Opp FTM/Game 13.3  FTA/Game 25
    +.5  Opp FTA/Game 20.6  
    ...
    Steals/Game 10.1  Opp Steals/Game 7.7  Steals/Play 11.7  Opp Steals/Pl
    +ay 8.8  
    Turnovers/Game 13.1  Opp Turnovers/Game 17.1  Turnovers/Play 14.9  Opp
    + Turnovers/Play 19.8";  
    $content .= "Personal Fouls/Gm 18.5  Opp Personal Fouls/Gm 20.8  Perso
    +nal Fouls/Play 21.4  Opp Personal Fouls/Play 23.7";
    
  2. or download this
    Points/Game => 80.5,
    Opp Points/Game => 69.7,
    Avg Score Margin => +10.8
    
  3. or download this
    my %stats = $content =~ /(\w+\s+\d+)/;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1069878]
Approved by Eliya
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (9)
As of 2024-04-23 09:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found