Thans LucD!
Initially, I thought that the $host variable would just be READ by the system as it looped through the hosts. When you suggested changing the variable, I thought I'd need to add some more code to ppulate the host name into the new variable. Thanks for setting me straight.