Data Storage You may have noticed that our Foo::Bar object is based on Perl's native hash datatype. Because hashes provide an easy way to hold name-value pairs, it happens that they are very convenient for the type of data needed for most aggregate datatypes. That being said, a Perl object can use any Perl datatype for its data storage. If you object feels like an array, use one. Basic objects are usually hashes, because they are flexible.