Thanks, that's what I needed.

thanks again.

Cheers,
Terrence

-----Original Message-----
From: Adam Turoff [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 28, 2001 10:19 PM
To: Terrence Chan
Cc: [EMAIL PROTECTED]
Subject: Re: OO Perl programming.


On Wed, Nov 28, 2001 at 04:54:53PM +0800, Terrence Chan wrote:
> I'm new to OO Perl and I wonder if it is possible to implement Sigleton
> pattern in OO perl. And how it is implemented.
> 
> Any info/pointer is welcomed.

Check out search.cpan.org for "singleton".  You'll find this:

http://search.cpan.org/doc/ABW/Class-Singleton-1.03/Singleton.pm

        DESCRIPTION

        This is the Class::Singleton module. A Singleton describes
        an object class that can have only one instance in any
        system. An example of a Singleton might be a print spooler
        or system registry. This module implements a Singleton
        class from which other classes can be derived. By itself,
        the Class::Singleton module does very little other than
        manage the instantiation of a single object. In deriving
        a class from Class::Singleton, your module will inherit
        the Singleton instantiation method and can implement whatever
        specific functionality is required.

        For a description and discussion of the Singleton class,
        see "Design Patterns", Gamma et al, Addison-Wesley, 1995,
        ISBN 0-201-63361-2.

Z.


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to