I'm working on a project in which I'm using multiple instances of various Objects. There are times when one of these instances needs to be passed to another object's subroutine.
Is it more efficient (better practice?) to pass the object itself: $myotherobject->subRoutine($object)
Or a reference to the object? $myotherobject->subRoutine(\$object)