foreach my $name (@names) { if(!name already_in_database()) { #### if(! already_in_database($name))