From: bobx@... (Bob) Date: 2002-10-22T01:54:07+09:00 Subject: functional Ruby equiv to this perl snippet # parses a text file looking for server names and ignoring lines # with start with the pound/hash sign. sub load_server_list { $filename = "serverlist.txt"; open (SERVERLIST, $filename) or die "Can't open $filename:$!"; $i = 0; while (defined ($servername = )) { if ($servername ne "\n") { if (substr($servername,0,1) ne "#") { chomp ($servername); $servers[$i] = "$servername"; $i = $i + 1; } } } close (SERVERLIST); $server_count = $i; } I am trying to convert a perl script I like to Ruby and I am not very good at either! Thanks! Bob