@instances = $session->getClassInstances( $class )
The getClassInstances() 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 getLeafInstances() in that this call returns the members of the class and any derived classes, whereas getLeafInstances() returns only the members of the specified class.
@names = $session->getClassInstances( "Router" );