in reply to Child objects querying parent objects about themselves
I'll just add to jdporter's node that you ought not to do a 'use Parent' inside your Child package. It already gets a Parent object via Child->new($self). Since you're doing OO you can also switch to 'require Child' (assuming you split this into separate files) since 'use' just happens earlier and runs import() - a superfluous operation for your code.
|
|---|