Old School Object Oriented Perl Posted by charliesome on Monday May 20, 2013 @06:54AM from the perltricks.com dept. http://www.perltricks.com/article/25/2013/5/20/Old-School-Object-Oriented-Perl ( 1 comment | 8 points | on HN )
Shape class must have color attibute only. Shape::Retangle and Shape::Circle should inherit from the Shape.
And
...
package Shape::Retangle;
use parent 'Shape';
sub new {
}...
package Shape::Circle;
use parent 'Shape';
sub new {
}...