- if database = "lonprod" then call module App:London::Production::LogTable - if database = "parprod" then call module App::Paris::Production::LogTable - if database = "lontest" then call module App::London::Test::LogTable - if database = "partest" then call module App::Paris::Test::LogTable #### if $database eq "lonprod" { App::London::Prod::LogTable->find_and_create( { column1 => $data{"column1"}, column2 => $data{"column2} } ); } elsif $database eq "lontest" { ... #etc }