given ($site->{FILETYP}) { when("package") { $logger->debug("no 2. run"); } when("profile") { $logger->debug("2. run required!"); my $sp_ret = 0; foreach my $cont (@contend) { $sp_ret = storeContend($cont, $site->{OS}, \$logger); if($sp_ret == 255) { unshift(@wrongs, $cont); # store file in error array } } } when("host") { $logger->debug("no 2. run"); } when("log") { $logger->debug("no 2. run"); } }