$object->put( $property_name, $value );
The put() method allows fields of the object to be modified in the Domain Manager repository.
This method is used in a number of ways. However, the use of the pseudo-hash syntax is the preferred option for syntactic equivalence with the Domain Manager native ASL language, as shown:
$obj->put( "Vendor", "Cisco" ); $obj->{Vendor} = "Cisco"; $obj->{ComposedOf} = [ ];
To set more than one property in a single call, use multiple name:value pairs, such as:
$obj->put(Vendor => "Cisco", PrimaryOwnerContact => "Joe Bloggs");
You can also set more than one property in a single call, by using the following syntax:
%updates = ( Vendor => "Cisco", PrimaryOwnerContact => "Joe Bloggs"); $obj->put( %updates );
When using either syntax to set a relationship or list property, use a reference to a Perl array, such as:
$obj->{ComposedOf} = [ $a, $b, $c ]; $obj->put( "ComposedOf", \@things );
Use insertElement() and removeElement() to add or remove elements from a list.