in reply to Avoiding empty HASH ref. errors

Check out this code listing from Conway's OO Perl. As you will see, he creates encapsulated class data within the class and uses it to help set default values for the object if data is not passed to the consturctor argument. Pick up the book if you haven't already.

$PM = "Perl Monk's";
$MCF = "Most Clueless Friar Abbot Bishop";
$nysus = $PM . $MCF;
Click here if you love Perl Monks