in reply to Filter File Using HASH

The line you don't understand can be read as: "if there is a true value in the hash table %wanted for the key $server".

That said, that while loop is reading a line, extracting the server name from it and, if there is an entry for that server, it prints the line.