I'd like to make a few suggestions for improving this
useful module.
- You should use the second argument to bless in
case someone wants to subclass this class.
- All of the attribute accessor functions are identical.
Is there potential to make them all one function - or
perhaps to do something clever in AUTOLOAD.
- The addCell function takes rather a lot of
parameters. It might be easier to use if you used named
parameters rather than positional ones.
- code like push(@font, " $opt$i=\"" . $self->{$opt$i} . "\"")
might be easier to understand if it was written as
push(@font, qq( $opt$i="$self->{$opt$i}")).
- Why not use the CGI.pm table creation
functions to build your table elements?
Hope you find this helpful. Let me know if I can
clarify anything.
--
<
http://www.dave.org.uk>
European Perl Conference - Sept 22/24 2000, ICA, London
<
http://www.yapc.org/Europe/>