|
VisSection - handler to manipulate sections in VisRep.pl. |
VisSection - handler to manipulate sections in VisRep.pl.
use Data::Reporter::VisSection;
$section = new Data::Reporter::VisSection();
$section->configure(Name => 'mydetail',
Lines => ('line 1', 'line 2', 'line 3'),
Code => "print 'this is the detail section\n';",
Size => 3,
Break_field => 0,
Width => 20,
Only_code => 0);
my $name = $section->name();
my $size = $section->size();
my $break_field = $section->break_field();
my @lines = $section->lines();
my $code = $section->code();
my $only_code = $section->only_code();
$section->append("print 'this is the last line of code\n');
$section->insert("print 'this is the first line of code\n'");
open OUT, "out.txt";
$section->generate(\*OUT);
valid options are:
name()size()break_field()lines()code()only_code()generate(\*OUT)
A section is a part of a report. For example the header section, the title section, etc. Each section has two parts:
|
VisSection - handler to manipulate sections in VisRep.pl. |