James A. Duncan > EO-0.96 > EO::Singleton

Download:
EO-0.96.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Module Version: 0.96   Source  

NAME ^

EO::Singleton - A generic singleton base class

SYNOPSIS ^

inherit from EO::Singleton:

  package MySingleton;
  use base qw( EO::Singleton );
  ...

then in your code:

  my $a = MySingleton->new;
  my $b = MySingleton->new;

and $a and $b will be the same object.

TODO ^

I want to be able to call MySingleton->method and have this be equivalent to MySingleton->new->method.

AUTHOR ^

Tom Insam tinsam@fotango.com

SEE ALSO ^

EO

COPYRIGHT ^

Copyright 2004 Fotango Ltd. All Rights Reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.