EO::Singleton - A generic singleton base class
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.
I want to be able to call MySingleton->method and have this be equivalent to MySingleton->new->method.
Tom Insam firstname.lastname@example.org
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.