View Single Post
Old 2008-10-25, 18:42   #26
mdettweiler
A Sunny Moo
 
mdettweiler's Avatar
 
Aug 2007
USA (GMT-5)

11000011010012 Posts
Default

Quote:
Originally Posted by IronBits View Post
When parsing for the _ character as a team/name split, if a username has an _ char in it then we are going to have problems.
I can parse for the first _ char and split it up based on that.
Team_User_ID would not be a problem
User_ID would be a problem

Anyone have a better idea?
I've attached the Perl script I wrote a while back to handle the CSV conversion for Adam's old stats site--combined with a teams.dat file (a plain text file listing all known team names, one per line, like your list that you gave a few posts ago), it gets around this problem by checking to see if whatever's before a _ character in a username matches a vlid team name. You may want to implement a similar solution to this in your setup.
Attached Files
File Type: bz2 aes-stats.pl.bz2 (702 Bytes, 149 views)
mdettweiler is offline   Reply With Quote