www.perl.com
Perl Programming
Shapes Example
  • Shape
    • Polygon
      • Triangle
      • Quadrilateral
        • Parallelogram
          • Rectangle
            • Square
          • Rhombus
            • Square
  • Square is both a Rectangle and Rhombus
  • Perl supports multiple inheritance
  • Shape.pm module contains sample packages for all these shapes
  • shape-test script tests the sample packages, giving these results
Previous http://stuff.mit.edu/iap/perl/