in reply to Re^2: Packages with subs using fully qualified class names, not always their own.
in thread Packages with subs using fully qualified class names, not always their own.

karlgoethebier:

You're not wrong at all. Roles could be a good way to do it.

Generally I do it when:

I'm not saying it's a good/best practice, but that it sure is convenient.

Sorry for the long delay in replying. I've ignored my Chatterbox queue a bit too long, and now I'm trying to work through the backlog...

...roboticus

When your only tool is a hammer, all problems look like your thumb.

  • Comment on Re^3: Packages with subs using fully qualified class names, not always their own.

Replies are listed 'Best First'.
Re^4: Packages with subs using fully qualified class names, not always their own.
by karlgoethebier (Abbot) on Sep 01, 2017 at 06:32 UTC
    "...I'm not saying it's a good/best practice..."

    Thank you very much roboticus for your kind reply and the good advice.

    I'm convinced that simplicity is one of the hardest things to accomplish - in any metier.

    And i think that the combination of Class::Tiny/Role::Tiny is very close to this magic "One Size Fits All" pattern AKA the Holy Grail ;-)

    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