in reply to Re^5: Idea: Moose Mutal Coercion
in thread Idea: Moose Mutual Coercion

No. I guess the OP wants a class which you can initialize with any two attributes, but you can then ask for all three.

Replies are listed 'Best First'.
Re^7: Idea: Moose Mutal Coercion
by BrowserUk (Patriarch) on Feb 15, 2012 at 16:54 UTC

    Ah! The hackers are gonna love this:

    package Hash::PassPhrase; use Moose; use MooseX::Invertible_Build; has passPhrase => ( isa => Str ); has salt => ( isa => Str ); has hash => ( isa => Str, invertible_build => { A => 'salt', B => 'passPhrase', via => 'crypt( A, B )', }, );

    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

    The start of some sanity?