Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^6: Team Player Timeline

by aartist (Pilgrim)
on Jun 25, 2015 at 11:59 UTC ( [id://1131939]=note: print w/replies, xml ) Need Help??


in reply to Re^5: Team Player Timeline
in thread Team Player Timeline

Thanks for an excellent attempt. I explored it further with replacing 'career years' instead of games, so I modified the code little bit.
my $player_count = 0; open(IN, "players"); while(<IN>){ ($player,$years) =split /\t/; my($start,$end) = split /\-/,$years; $player_count++; foreach my $year ($start..$end){ push @{$games[$year]},$player_count; } }
Also modified code for eliminating empty rows. It works great.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-04-26 06:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found