hop of those help? I would say it's never safe to break encapsulation, Moose or not. Note that your bull test is not 100 times slower. Remember that it's using the accessor twice. Just on the back of the envelope, that takes it from 1,000,000 runs per second to 2,000,000 accesses per second. Compared to the hash, that makes it about a factor of 6. Add a bunch of those slowdowns and it can add up, though.
This might help you Dont instantiate a seperate parent class, it will be instantiated as part of instantiating the child class. Also pass the object to the child instantiation and create a __construct() method and pass the parameter on to it.
class Child extends Parent
public function doStuff()
public function control()
//$parent = new Parent(new Object($variable));
$child = new Child(new Object($variable)); // line 25
How to access a member of object whose member name (or path) is stored in a string? (angularjs)