NAME
Data::Grid::Cell - Cell implementation for Data::Grid::Row
VERSION
Version 0.01_01
SYNOPSIS
for my $cell (@$cells) {
warn $cell->value;
# string overload
printf "%s\n", $cell;
}
METHODS
value
Retrieves a representation of the value of the cell, potentially formatted by the source, versus a possible alternate "literal" value. This method is a stub, and should be defined in a driver subclass. If the cell is stringified, compared numerically or tested for truth, this is the method that is called, like so:
print "$cell\n"; # stringification overloaded
literal
Spreadsheets tend to have a literal value underlying a formatted value in a cell, which is why we have this class and are not just using scalars to represent cells. If your driver has literal values, override this method, otherwise it is a no-op.
row
Alias for "parent" in Data::Grid::Container.
AUTHOR
Dorian Taylor, <dorian at cpan.org>
BUGS
Please report any bugs or feature requests to bug-data-grid at rt.cpan.org
, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Data-Grid. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc Data::Grid::Cell
You can also look for information at:
RT: CPAN's request tracker
AnnoCPAN: Annotated CPAN documentation
CPAN Ratings
Search CPAN
SEE ALSO
Data::Grid, Data::Grid::Container, Data::Grid::Table, Data::Grid::Row
LICENSE AND COPYRIGHT
Copyright 2010 Dorian Taylor.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.