if ( -e "ship.cfg" ) { open (CFGFILE, "<", "ship.cfg") || die; @hosts=; close (CFGFILE); # untaint all data from ship.cfg @hosts = map { /^(.*)$/ and $1 } @hosts; } else { # Enter your hosts here... @hosts = qw/host1 host2 host3 aliens/; }