Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re: Perl Modules with 2 or more classes

by GrandFather (Sage)
on Oct 19, 2011 at 20:54 UTC ( #932503=note: print w/replies, xml ) Need Help??

in reply to Perl Modules with 2 or more classes

I frequently create modules containing several related packages/classes. Most often they are a main class and a number of helper classes, although sometimes I provide a base class and various derived classes that way too. The main class/package is the module name and the derived/helper classes are either not used outside the module, or (in the case of subclasses) are available just by virtue of using the module containing the base class.

Note that Perl doesn't really provide 'classes', it provides packages which can generally be thought of as classes.

True laziness is hard work
  • Comment on Re: Perl Modules with 2 or more classes

Replies are listed 'Best First'.
Re^2: Perl Modules with 2 or more classes
by ribluc (Initiate) on Oct 26, 2011 at 20:14 UTC
    Thank you all for the answers! # -- ribluc

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://932503]
[oiskuu]: Someone needs to re-read How do I use the power of consideration responsibly? carefully. Consideration is not intended for stamping out humor, AFAIK.
[oiskuu]: E.g. Re^3: Big thank you to the Perl community. is surely dry humor (not mine). Don't they teach humor in german schools!?
[LanX]: you don't see the whole picture

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (13)
As of 2017-04-27 19:49 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (512 votes). Check out past polls.