in reply to Conventions with Passing Objects to Objects

Without more details of what you're actually doing with these, I don't see anything particularly wrong with it. Handing an object as a parameter to another object is just fine -- things of that sort are frequently refered to as following a "delegation" pattern -- though that does have some specific semantics. Some useful references include:

Underscore parameters (and subs) have the convention of indicating private, but there's no real reason you can't deviate as needed. If it helps you in your coding, but you want to be more consistent for users, you might take "object1" as an argument to new but store it as _object1 internally to help distinguish in your coding.

-xdg

Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.