clinton has asked for the wisdom of the Perl Monks concerning the following question:
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:
What would you do?
thanks
Clint
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Common sub as method or function
by akho (Hermit) on Aug 15, 2007 at 16:16 UTC | |
Re: Common sub as method or function
by perrin (Chancellor) on Aug 15, 2007 at 17:30 UTC | |
Re: Common sub as method or function (or)
by tye (Sage) on Aug 15, 2007 at 17:32 UTC | |
Re: Common sub as method or function
by borisz (Canon) on Aug 15, 2007 at 17:27 UTC | |
Re: Common sub as method or function
by shmem (Chancellor) on Aug 15, 2007 at 19:36 UTC | |
Re: Common sub as method or function
by dogz007 (Scribe) on Aug 15, 2007 at 16:23 UTC | |
by clinton (Priest) on Aug 15, 2007 at 16:28 UTC | |
by dogz007 (Scribe) on Aug 15, 2007 at 16:35 UTC | |
by akho (Hermit) on Aug 15, 2007 at 16:50 UTC | |
by akho (Hermit) on Aug 15, 2007 at 17:06 UTC |