Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: OO Pattern Container x Elements and Method Chainingby jdporter (Paladin) |
on Oct 08, 2021 at 15:26 UTC ( [id://11137352]=note: print w/replies, xml ) | Need Help?? |
These are in fact identical, other than the temporary variable $elem1. Nothing about method chaining requires that the element know that it's contained by the container.
In Section
Seekers of Perl Wisdom
|
|