I have an application where many of the modules can make sense on their own. I'd like to write each module as a perl program, and then include them in the main program via
(or another more or less equivalent statement). But if a module is called on its own, I'd like it to work on its own.
Basically, I'm looking for a perl equivalent to python's