package myFoo; sub new { return {},"myFoo"; } sub stuff { } 1; #### use myFoo; my $f = new myFoo(); $f->stuff;