sub foo { my $bar=new Obj, is default; #ok, I don't remember the exact syntax but I'm sure you get what I mean .foo(); .baz(); .qux(); }