A modulino is code that can be run as a script or loaded as a module (or as a library). Thus functionality that is created in developing one script can be easily used in other scripts later.
A modulino is code that can be run as a script or loaded as a module (or as a library). Thus functionality that is created in developing one script can be easily used in other scripts later.
Originally a Perl design pattern, the term modulino was coined by brian d foy at least by 2004 when he wrote about it in Dr. Drobbs Journal. (see also Makefile.PL as a modulino).
The key to creating a modulino is that the code has to determine whether it is being used as a script or as a module.
Language examples (on Stack Overflow):