in reply to Creating module files from subroutines

I suggest that you take a look at The Very Very Short Tutorial About Modules. It has an extremely simple example of a module---the complete code, including the module and the program that uses it, is only nine lines long. There are also a set of exercises which you can do or ignore. Probably looking at the example module and running the program will be enough of an example for you to do the same thing to your own functions.

--
Mark Dominus
Perl Paraphernalia

  • Comment on Re: Creating module files from subroutines