package Reporting; my @sendtasks; if (used "EMail") { use EMail shift @sendtasks,\&EMail::Send; }