Help for this page

Select Code to Download


  1. or download this
    {
            package Row;
    ...
                    },
            );
    }
    
  2. or download this
    sub addCell {
            my ($self, $index, @cells) = @_;
            $self->pushRow( [] ) if !defined $self->getRow($index);
            $self->getRow($index)->pushCell(@cells);
    }
    
  3. or download this
    {
            package Grid;;
    ...
                    },
            );
    }
    
  4. or download this
    my $grid = Grid->new( grid => [ 
                    [$cellA0, $cellB0, $cellC0], 
                    [$cellA1, $cellB1, $cellC1],
                    [$cellA2],
            ] );
    
  5. or download this
    #!/usr/bin/perl -w
    
    ...
    $grid4->addCell(5, $mycell4B);
    print $grid4->toString . "\n";
    print "END grid4 test\n\n";
    
  6. or download this
    BEGIN row1 test
    A0      B0      C0      D0      E0
    ...
    A5
    END grid4 test