use Foo; my $f = Foo->new(%args); my $g = $f->frobnicate; #### use Foo 'frobnicate'; my $g = frobnicate($args);