my $coderef = Modul::Name->can("subname"); my $coderef = main->can("subname"); $coderef->($parameter);