in reply to Common sub as method or function
You should make them methods. If the rest of the API is OO, you may want to subclass things someday, and making these OO as well would be important then.
However, these sound like class methods to me, not object methods. You should call them with the class name, not the object reference:
my $class = ref $self; # if calling from an object method $class->timestamp();
|
---|