Debian Codegraph @

README

raw
1 NAME
2
3 Class::Singleton - Implementation of a "Singleton" class
4
5 SYNOPSIS
6
7 use Class::Singleton;
8
9 my $one = Class::Singleton->instance(); # returns a new instance
10 my $two = Class::Singleton->instance(); # returns same instance
11
12 DESCRIPTION
13
14 This is the Class::Singleton module. A Singleton describes an object class
15 that can have only one instance in any system. An example of a Singleton
16 might be a print spooler or system registry. This module implements a
17 Singleton class from which other classes can be derived. By itself, the
18 Class::Singleton module does very little other than manage the instantiation
19 of a single object. In deriving a class from Class::Singleton, your module
20 will inherit the Singleton instantiation method and can implement whatever
21 specific functionality is required.
22
23 INSTALLATION
24
25 See the INSTALL file.
26
27 COPYRIGHT
28
29 Copyright (C) 1998 Canon Research Centre Europe Ltd.
30 Copyright (C) 1998-2008 Andy Wardley. All rights reserved.
31 Copyright (C) 2014, 2020 Steve Hay. All rights reserved.
32
33 LICENCE
34
35 This distribution is free software; you can redistribute it and/or modify it
36 under the same terms as Perl itself, i.e. under the terms of either the GNU
37 General Public License or the Artistic License, as specified in the LICENCE
38 file.