in reply to building modules

It depends. At a bare minimum, you need a package declaration, and probably use the Exporter.

----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer

Note: All code is untested, unless otherwise stated

Replies are listed 'Best First'.
Re: Re: building modules
by Anonymous Monk on Jun 09, 2003 at 14:31 UTC
    Thanks for the response.
    I have 2 questions now regarding this.

    1. Can u please point me to a link/doc where i can go through this?
    2. Suppose i have a perl module, can i just add some more routines to it just as in a perl file (also export those routines if needed)?

    thanks.

      perlmod is probably the doc you want.

      For your second question, you just need to add the subroutine and then add it to the list of symbols to export.

      ----
      I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
      -- Schemer

      Note: All code is untested, unless otherwise stated