my(@hosts) = ; chomp(@hosts); foreach my $host (@hosts) {    # mach etwas mit $host }