@instances = $session->getLeafInstances( $class )
The getLeafInstances() function is an alias for getInstances(). The section “getInstances” on page 86 provides additional information.
The getLeafInstances() function gets the list of instances of a specified class.
The return is a list of strings that contain the instance names without the class name. For example, “fred” is returned rather than “Router::fred”. This differs from getClassInstances() in that this call returns only the members of the specified class, whereas the getClassInstances() call returns the members of the class and its derived classes.
@names = $session->getLeafInstances( "Router" );