NAME
Data::Grid::Cell - Cell implementation for Data::Grid::Row
VERSION
Version 0.06
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.
quoted
Returns the value with quotes, per RFC 4180, if it needs to be quoted.
row
Alias for "parent" in Data::Grid::Container.
AUTHOR
Dorian Taylor, <dorian at cpan.org>
SEE ALSO
COPYRIGHT & LICENSE
Copyright 2010-2018 Dorian Taylor.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.