The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Data::Sheet - Perl extension for provide DataSheet like data structure.

SYNOPSIS

  use Data::Sheet;

  # new(width, height, initVar);
  $table = Data::Sheet->new(10, 10, 0);

DESCRIPTION

Provide table like data structure.

API

Constructor

new(width, height, initVar)

the new method. Return width * height size sheet object that initialized by initVar.

Control Methods

resize(newWidth, newHeight)

Resize the sheet.

turnRight

Turn Right the sheet.

turnLeft

Turn Left the sheet.

Accessor Methods

setCell(x, y, value)

Set value to sheet(x, y) cell.

getCell(x, y, value)

Get value from sheet(x, y) cell.

setRow(x, values)

Set row to values.

getRow(x)

Get values from sheet's x row.

setCol(y, values)

Set column to values

getCol(y)

Get values from sheet's y column

Other method

printSheet

Print sheet simply.

SEE ALSO

AUTHOR

Pocket, <poketo7878@yahoo.co.jp<gt>

COPYRIGHT AND LICENSE

Copyright (C) 2010 by Pocket

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.12.1 or, at your option, any later version of Perl 5 you may have available.