Listing 2.5. Using the Customer module.
use Customer;# Create a new customer object
$cust = Customer->new( `Name' => "Billy T. Kid",
`Vitals' => ["Age : 10", "Sex : M"] );
# add a single statistic
$cust->addstat(`Phone' => `1-203-456-7890');
# Print out the values for the object
$cust->dumpcust();
You will probably end up using a combination of the techniques I've discussed to work with modules within your Perl programs and obtain the level of functionality that you want. Each and every module that you use in your Perl programs will be a little bit different, certainly, but once you understand how you can use them, you're on your way to making use of any one of them.