- or download this
sub new {
my ( $invocant, %shape ) = @_; # Stash all params into shape
...
};
return bless $self, $class;
}
- or download this
my $box = shapes->new(shape => %box);
$box->print_shape(); # Do som real work
- or download this
sub new {
my ( $invocant, @lines ) = @_; # Take the lines in orden
...
print $lines, "\n";
}
}