Thanks for joining the discussion. One note - everybody knows that 'cut and paste' is evil - but yet there is a case where everyone would agree that it is not - on the contrary - it is the way to go for short examples like the synopsis in most CPAN modules. The situation with code generation is in a way similar. What I am looking for is a 'unified' view of all those cases.