"...looks like a singleton...I don't know if Moo can do this..."
Probably this can be easily done with Role::Singleton by just saying with 'Role::Singleton';?
I never used this and stumbled over it by chance.
Best regards, Karl
«The Crux of the Biscuit is the Apostrophe»
perl -MCrypt::CBC -E 'say Crypt::CBC->new(-key=>'kgb',-cipher=>"Blowfish")->decrypt_hex($ENV{KARL});'Help
In reply to Re^2: Caching a default instance to avoid initializing it every time (with Moo)
by karlgoethebier
in thread Caching a default instance to avoid initializing it every time (with Moo)
by Dallaylaen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |