Data-Presenter
view release on metacpan or search on metacpan
corrections and improvements over version 0.2 which was released 10/28/2001.
=over 4
=item *
Introduced C<$index> as one of the variables specified in I<fields.XXX.data>,
imported into the main package and used as metadata inside the
Data::Presenter object. This eliminates some hard-coding inside subroutines
C<_init()> and C<_extract_rows()> inside Data::Presenter::[subclass] packages.
It also necessitated a revision of C<_build_sort_formula()>, a large part of
which was extricated into the separate subroutine C<_formula_engine()>. This
for the first time permitted on index keys which were not entirely numerical.
So now one can sort on, say, product serial numbers such as C<'24TY-789'>.
=item *
Established a package global hash C<%reserved> within I<Data::Presenter.pm>
and C<%reserved_partial> within I<Data::Presenter::Combo::Intersect.pm> and
I<Data::Presenter::Combo::Union.pm>. These are hashes of words such as
'fields', 'parameters', 'index' and 'options' which are reserved for current
or future use as keys in the hash blessed into the Data::Presenter object.
unless ($i eq 'fields' || $i eq 'parameters') {
# do something
}
=item * C<_format_picture_line()> and C<writeHTML()> now format numerical columns
flush-right.
=item *
A bug was fixed in C<_build_sort_formula()> that was causing 'HERNANDEZ' to
precede 'HERNAN' in alphabetical sorts. This was caused by the internal use
of C<'|'> as the delimiter between array entries. C<'|'> has a higher ASCII
position than any alphabetical or numerical character. Hence 'HERNANDEZ|'
has a lower sorting value position than 'HERNAN|'. This has been corrected
by substituting C<'!'> as the delimiter, since C<'!'> has a lower ASCII value
than any alphabetical or numerical character. One side effect is that the
character C<'!'> may not appear in data being input into Data::Presenter
objects.
=item *
lib/Data/Presenter.pm view on Meta::CPAN
Monday, 11:00 Social Science T Jones 4044 4044_13
Friday, 9:00 World History H Wells 4052 4052_51
Friday, 9:00 Music Appreciation W Wilson 4044 4044_51
As with C<writedelimited_with_reprocessing()>, C<writedelimited_deluxe()>
requires careful preparation on the part of the administrator. See the
discussion under L<"writeformat_with_reprocessing()"> above.
=head3 C<writeHTML()>
In its current formulation, C<writeHTML()> works very much
like C<writeformat_plus_header()>. It writes data to an operator-specified
HTML file and writes an appropriate header to that file as well.
C<writeHTML()> takes the same 4 arguments as C<writeformat_plus_header()>:
C<$sorted_data>, C<\@columns_selected>, C<$outputfile> and C<$title>. The
body of the resulting HTML file is more similar to a Perl format than to an
HTML table. (This may be upgraded to a true HTML table in a future release.)
$dp1->writeHTML(
sorted => $sorted_data,
columns => \@columns_selected,
( run in 0.435 second using v1.01-cache-2.11-cpan-3cd7ad12f66 )