while (my $pidlist = <$settings>){ #...