use My::Module call => 'foo'; sub foo { ... }; # foo is called at the end