Ah, ok, thanks for spelling that out! In my code I used a scalar reference so I seem to have stumbled onto that without really appreciating it.
This is the answer I seek. :) Sent from my iPhone > On Nov 2, 2014, at 11:30 AM, Bill Ricker <[email protected]> wrote: > > >> On Sun, Nov 2, 2014 at 11:08 AM, Adam Russell <[email protected]> wrote: >> My question arose because it seems that Perl's built in OO system allows you >> to do "has-a" but only asa slight twist on "is-a". Or may be not. Has there >> been an answer to that yet? If so, I didn't see it. > > I touched on this. Since Perl is Duck-typed not strongly-typed, the Perl5 > built-in (lame) OO system doesn't (need to) do "has-a" as OO, we just use > scalar references for has-a composition, not embedded has-a. It just works. > > [ Some of the bolt-on OO systems may support typed has-a composition, but I'm > not a Moose lodge member so can't say offhand. ] > > > -- > Bill Ricker > [email protected] > https://www.linkedin.com/in/n1vux _______________________________________________ Boston-pm mailing list [email protected] http://mail.pm.org/mailman/listinfo/boston-pm

