I realised that my first test wasn't good for non-empty but blank 
lines. The following fixes that. Also note that I've removed 
server_count -- you don't need a separate count because servers.size 
contains that information.

def load_server_list
    servers = []
    File.open('serverlist.txt').each do |line|
        next unless line =~ /^\S+$/
        next if line =~ /^#.*$/
        servers << line.chomp.sub(/\s+#.*$/, '')
    end
    servers
end

servers = load_server_list
p servers.size, servers

-- Austin Ziegler, austin / halostatue.ca on 2002.10.21 at 13.42.27