version 1.2, 2010/08/27 09:42:48
|
version 1.4, 2011/04/13 10:44:26
|
Line 146 These produce a horizontal rule that spa
|
Line 146 These produce a horizontal rule that spa
|
|
|
=back |
=back |
|
|
|
Calling this multiple times will continue to append cell data. |
|
|
=head3 Example |
=head3 Example |
|
|
$table->set_data([ ['Gnu', '92.52'], [], ['Emu', '33.33'] ]); |
$table->set_data([ ['Gnu', '92.52'], [], ['Emu', '33.33'] ]); |
Line 157 Produces
|
Line 159 Produces
|
| Emu | 33.33 | |
| Emu | 33.33 | |
+--------------+--------------+ |
+--------------+--------------+ |
|
|
|
|
=cut |
=cut |
|
|
sub set_data { |
sub set_data { |
my ($self, $data) = @_; |
my ($self, $data) = @_; |
$self->{'data'} = $data; |
my $current_data = $self->{'data'}; |
|
push (@$current_data, @$data); |
|
$self->{'data'} = $current_data; |
|
|
|
|
} |
} |
|
|