Help for this page

Select Code to Download


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