The get() method is used to retrieve the value of the specified properties of the object, such as the value of an attribute. In addition, the call “get_t” on page 34 also extends the functionality of the get() method by returning additional information that identifies the data type (for example, STRING) of the property value.


The get() and get_t() primitives throw an error when used to access a nonexistent property or one that cannot be retrieved for any reason, whereas the psuedo-hash syntax simply returns an undef value. This difference allows the Data::Dumper logic to display an entire object without an error even when some properties cannot be retrieved.