in reply to Defining classes and inheritance using packages within a single .pl file, without creating modules

PAR may help you with distribution. Cheers.

Update: There are multiple errors in the code. One of them is that the Class2 constructor calls the Class1 constructor without arguments. You might also want to consider whether an age of zero or the empty string as a title are acceptable. There are many CPAN modules that will help you lay out your OO structure. HTH.

  • Comment on Re: Defining classes and inheritance using packages within a single .pl file, without creating modules