use strict; use warnings; use lib "/tmp"; use Modules::test1; use Modules::test2; my $installation1 = Modules::test1->new(); my $installation2 = Modules::test2->new(); #### package Modules::test1; use strict; use warnings; require "/tmp/utils/Log.pl"; require "/tmp/utils/Utili.pl"; my @Hosts=getHosts(); sub new() { print "inside new\n"; } #### package Modules::test2; use strict; use warnings; my @IP=getIP(); require "/tmp/utils/Log.pl"; require "/tmp/utils/Utili.pl"; sub new() { print "inside new\n"; }