Scope::Session::Singleton - Singleton class for Scope::Session
Version 0.01
Scope::Session::Singleton works the same as Class::Singleton or Apache::Singleton, but with scope base lifetime.
package Something::UniqueInSession; use base 'Scope::Session::Singleton'; Scope::Session::start { my $foo = Something::UniqueInSession->instance; };
get the scope unique instance of subclass.
Class::Singleton ,Apache::Singleton
Daichi Hiroki, <hirokidaichi<AT>gmail.com>
<hirokidaichi<AT>gmail.com>
Copyright 2009 Daichi Hiroki.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install Scope::Session, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Scope::Session
CPAN shell
perl -MCPAN -e shell install Scope::Session
For more information on module installation, please visit the detailed CPAN module installation guide.