foreach my $line (@configFile) { next if $line =~ /^\s*$/; ...