in reply to Re: What About Providing Constructors in Roles?
in thread What About Providing Constructors in Roles?

"...Roles don't have constructors normally..."

Hi Nick, i was sure that someone would post something like this ;-)

But you are right: They don't. But in this case they provide them. Having a constructor or providing one is a different thing IMHO. Perhaps my English is still too bad to explain the difference exactly.

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

Replies are listed 'Best First'.
Re^3: What About Providing Constructors in Roles?
by 1nickt (Canon) on Dec 21, 2017 at 15:20 UTC

    Your English is fine! The code, too. Your intention is what's unclear ;-)


    The way forward always starts with a minimal test.