clinton has asked for the wisdom of the Perl Monks concerning the following question:
I have 3 modules which all inherit from a base module, which contains (obviously) the common methods.
I also have a few 'static' subs which all the modules need to use, but they don't need to use them as methods, eg sub timestamp {} as they are utility functions and have nothing to do with the object.
The way I see it, I have two options:
- use it as Module::Base::timestamp() or export it and use it as timestamp()
- use it as $self->timestamp() and just ignore the object in the parameter list
What would you do?
thanks
Clint
Back to
Seekers of Perl Wisdom