Description
Perl classes can expose one shared instance through a singleton pattern. Developers use it for objects that represent one global resource, registry, configuration manager, or shared service inside an application.
It is a programming library, not an app. Singleton state can make tests and reuse harder if overused, so applications should apply it only where one shared object is intentional.