I think this
Rescue-legacy-code-with-modulinos
is the central article on the topic with a lot of links and historical context. Especially b/c Brian states that he didn't invent but popularized the concept. (he even cites a Perlmonks' thread as earliest reference for the term "modulino")
He describes it primarily as a way to perl Module.pm with a meaningful effect. (A)
But in the second part of this article he describes the other way round from initial require script.pl to renaming pl -> pm at the end. (B)
I.O.W. how he's using this technique to transform legacy code into modules.
Actually that's quite a interesting and powerful strategy. I'm certain I've seen this article multiple times before, but can't remember reading this part anymore.
And I think that's not surprising. We have to realize that this (B) direction involves far more refactoring, while the former (A) can be already achieved with just one single additional line.
I'd say it's safe to say that >95% of all modulinos out there belong to the A-category of runnable modules, and that's what the majority remembers.
|