# HTML::TableTiler - Examples

The examples below show you some possibilities of HTML::TableTiler module.

All the examples use the code below:

common code for all the examples
`01 02 03 04 05 06 07 08 09 10` | `$matrix=[ [ 'Descr.', 'Item', 'Quant.','Cost', 'Price' ], [ 'Balls', 'A001', '101', '2.75', '4.95' ], [ 'Cubes', 'A002', '102', '3.75', '5.95' ], [ 'Cones', 'A003', '103', '4.75', '6.75' ], [ 'Tubes', 'A004', '104', '5.75', '7.95' ] ];` `use HTML::TableTiler qw(tile_table); print tile_table($matrix, $tile, $modes);`

See tile and modes in each example to understand how both work in combination.`
` Placeholders are optional, but very useful to preview the final result.

### Example #1

Descr. | Item | Quant. | Cost | Price
Balls | A001 | 101 | 2.75 | 4.95
Cubes | A002 | 102 | 3.75 | 5.95
Cones | A003 | 103 | 4.75 | 6.75
Tubes | A004 | 104 | 5.75 | 7.95

Tile: `undef (default: '<table><tr><td></td></tr></table>')`

Modes: `not allowed with default tile
`

### Example #2

Descr. | Item | Quant. | Cost | Price
Balls | A001 | 101 | 2.75 | 4.95
Cubes | A002 | 102 | 3.75 | 5.95
Cones | A003 | 103 | 4.75 | 6.75
Tubes | A004 | 104 | 5.75 | 7.95

Tile:

placeholder
placeholder

Modes:`undef (default: PULL_H PULL_V)
`

### Example #3

Descr. | Item | Quant. | Cost | Price
Balls | A001 | 101 | 2.75 | 4.95
Cubes | A002 | 102 | 3.75 | 5.95
Cones | A003 | 103 | 4.75 | 6.75
Tubes | A004 | 104 | 5.75 | 7.95

Tile:

placeholder
placeholder

Modes:`TILE_V (default: PULL_H)
`

### Example #4

Descr. | Item | Quant. | Cost | Price
Balls | A001 | 101 | 2.75 | 4.95
Cubes | A002 | 102 | 3.75 | 5.95
Cones | A003 | 103 | 4.75 | 6.75
Tubes | A004 | 104 | 5.75 | 7.95

Tile:

placeholder | placeholder

Modes:`undef (default: PULL_H PULL_V)
`

### Example #5

Descr. | Item | Quant. | Cost | Price
Balls | A001 | 101 | 2.75 | 4.95
Cubes | A002 | 102 | 3.75 | 5.95
Cones | A003 | 103 | 4.75 | 6.75
Tubes | A004 | 104 | 5.75 | 7.95

Tile:

placeholder | placeholder

Modes:`TILE_H (default: PULL_V)
`

### Example #6

Descr. | Item | Quant. | Cost | Price
Balls | A001 | 101 | 2.75 | 4.95
Cubes | A002 | 102 | 3.75 | 5.95
Cones | A003 | 103 | 4.75 | 6.75
Tubes | A004 | 104 | 5.75 | 7.95

Tile:

placeholder | placeholder
placeholder | placeholder

Modes:`TILE_H TILE_V
`

### Example #7

Descr. | Item | Quant. | Cost | Price
Balls | A001 | 101 | 2.75 | 4.95
Cubes | A002 | 102 | 3.75 | 5.95
Cones | A003 | 103 | 4.75 | 6.75
Tubes | A004 | 104 | 5.75 | 7.95

Tile:

placeholder | placeholder
placeholder | placeholder

Modes:`undef (default: PULL_H PULL_V)
`