Buddy Burden writes: > Guys, > > > It's fairly unusually for a piece of code to be appropriate both as > > a stand-alone program and as a module loaded by other programs. ... > > Perhaps David's original question would have been more clear with a > slightly more targeted footnote reference: > http://www.drdobbs.com/scripts-as-modules/184416165
Thanks. Yes, I was unaware of that. But ... I'm not still not clear on the advantage of having the run function and the if caller test be in the module itself, rather than a separate file which use-s the module. Apart from anything else, it seems hard to come up with a filename which makes both a good command name for users and works well as module name in a use line by something else which wants to use the module. Cheers Smylers -- http://twitter.com/Smylers2