NAME

Text::Rhombus - Draw an alphanumerical rhombus

SYNOPSIS

use Text::Rhombus qw(rhombus);

print rhombus(
    lines   =>         31,
    letter  =>        'c',
    case    =>    'upper',
    fillup  =>        '+',
);

__OUTPUT__

++++++C++++++
+++++DDD+++++
++++EEEEE++++
+++FFFFFFF+++
++GGGGGGGGG++
+HHHHHHHHHHH+
IIIIIIIIIIIII
+JJJJJJJJJJJ+
++KKKKKKKKK++
+++LLLLLLL+++
++++MMMMM++++
+++++NNN+++++
++++++O++++++

FUNCTIONS

rhombus

Draws an alphanumerical rhombus.

$rhombus = rhombus(
    lines   =>         31,
    letter  =>        'c',
    case    =>    'upper',
    fillup  =>        '+',
);

Returns the rhombus as string.

Omitting options will return a rhombus of 25 lines.

options

  • lines

    amount of lines.

  • letter

    alphanumerical letter to start with.

  • case

    lower / upper case of the letters within the rhombus.

  • fillup

    fillup character.

EXPORT

rhombus() is exportable.

4 POD Errors

The following errors were encountered while parsing the POD:

Around line 107:

Expected '=item *'

Around line 111:

Expected '=item *'

Around line 115:

Expected '=item *'

Around line 119:

Expected '=item *'