in reply to Is it ok to mix functional and oo programming in one package?

I'm not convinced it's a good idea, but you could keep your separate packages, and make a third wrapper package with an autoload that dispatched to one or the other based on inspecting $_[0] (ie is it a ref of an appropriate class?)

Just because it can be done doesn't mean it should be though!

  • Comment on Re: Is it ok to mix functional and oo programming in one package?