Data::Grid::Cell - Cell implementation for Data::Grid::Row
Version 0.01_01
for my $cell (@$cells) { warn $cell->value; # string overload printf "%s\n", $cell; }
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
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.
Alias for "parent" in Data::Grid::Container.
Dorian Taylor, <dorian at cpan.org>
<dorian at cpan.org>
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.
bug-data-grid at rt.cpan.org
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
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Data-Grid
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Data-Grid
CPAN Ratings
http://cpanratings.perl.org/d/Data-Grid
Search CPAN
http://search.cpan.org/dist/Data-Grid/
Data::Grid, Data::Grid::Container, Data::Grid::Table, Data::Grid::Row
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.
To install Data::Grid, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::Grid
CPAN shell
perl -MCPAN -e shell install Data::Grid
For more information on module installation, please visit the detailed CPAN module installation guide.