NAME

Data::Table - Perl extension for provide table like data structure.

SYNOPSIS

use Data::Table;

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

DESCRIPTION

Provide table like data structure.

API

Constructor

new(width, height, initVar)

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

Control Methods

resize(newWidth, newHeight)

Resize the table.

turnRight

Turn Right the table.

turnLeft

Turn Left the table.

Accessor Methods

setCell(x, y, value)

Set value to table(x, y) cell.

getCell(x, y, value)

Get value from table(x, y) cell.

setRow(x, values)

Set row to values.

getRow(x)

Get values from table's x row.

setCol(y, values)

Set column to values

getCol(y)

Get values from table's y column

Other method

printTable

Print table simply.

SEE ALSO

AUTHOR

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

COPYRIGHT AND LICENSE

Copyright (C) 2010 by masato sogame

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.