[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> wrote:
: A better constructor might be (assuming you're going to represent : your object as a hash-reference, which is the most popular, but : not only way to do it. (read and reread perltoot until you : understand all of it). : : sub new { : my $class = shift; : bless ({}, $class) ; : return $self; : } Is $self a file scoped variable or is this a typo? Perhaps you meant this? sub new { my $class = shift; return bless {}, $class; } HTH, Charles K. Clarkson -- Mobile Homes Specialist 254 968-8328 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>