in reply to Re^2: Newbie OO module-structure question
in thread Newbie OO module-structure question

I don't see any loop over classes. There's a loop over objects.

If you don't like the constructors of the particular TaskN objects, that's what I'd solve with a factory.

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

Replies are listed 'Best First'.
Re^4: Newbie OO module-structure question
by LanX (Saint) on Apr 30, 2019 at 13:42 UTC
    > If you don't like the constructors of the particular TaskN

    I didn't say I don't like it, I was asking if it's possible to get a list of all classes having a specific role.

    Probably too far fetched for Moo.

    > that's what I'd solve with a factory.

    Good point!°

    On a side note ...

    Could you please write an OO book for languages with dynamic typing?

    I'm tired of the cognitive dissonance caused by Java concepts. ;D

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

    °) the OP is so wishy washy that I was thinking in another direction