package main; # mixin use IO::File qw(whatever); use Net::..... use SomethingElse; use EtCetera; 1; #### package Everything; sub import { my $pkg = caller; eval qq{ package $pkg; use This; use That; use And::So::On; 1; } or die $@; } 1;