I have a Perl module for a project. I can have a dozen programs that depend on it, and many of them are garbage. Before, I did not spend much time with DBI, so the part is fixed, but the main thing is that it is big. Literally 2KLOC.
It would be easy to break this function (let's call it Dumb.pm) into separate modules (Dumb :: FormTools, Dumb :: Database, etc.), except, as I said, many programs, use Dumb; ''
I would like to export Dumb :: Database exported functions through Dumb without having to repeat this over and over:
sub my_dumb_function { return Dumb::Database::my_dumb_function( @_ ) ; }
This does not mean that I am above this. It just seems like a stupid and inelegant way to solve this problem. Once I used the excuse “I don’t know anything better,” and once it really is more than you. Help?
source
share