"...The ability to add some functionality to a class without inheriting from it is pretty nice..."
Yes. But isn't this the thing about "what a class does"?
Perhaps it might be better in such a case to use a plugin: Let it role, baby, role.
Just some callow thoughts. Please correct me if i'm wrong.
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: Packages with subs using fully qualified class names, not always their own.
by karlgoethebier
in thread Packages with subs using fully qualified class names, not always their own.
by SimonSaysCake
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |