package Reporting; my @sendtasks; sub import { my $class = shift; for my $task (@_) { .. do the things you want to do .. } }