Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
package Point;
|
||||
use Class::Spiffy -base;
|
||||
|
||||
field 'x';
|
||||
field 'y';
|
||||
}
|
||||
|
||||
{
|
||||
package Circle;
|
||||
use base qw(Point);
|
||||
field 'r';
|
||||
}
|
||||
|
||||
my $p1 = Point->new(x => 8, y => -5);
|
||||
my $c1 = Circle->new(r => 4);
|
||||
my $c2 = Circle->new(x => 1, y => 2, r => 3);
|
||||
|
||||
use Data::Dumper;
|
||||
say Dumper $p1;
|
||||
say Dumper $c1;
|
||||
say Dumper $c2;
|
||||
Loading…
Add table
Add a link
Reference in a new issue