BorderStyle
view release on metacpan or search on metacpan
lib/BorderStyleRole/Source/ASCIIArt.pm view on Meta::CPAN
To define border characters, you declare C<$PICTURE> package variable in your
border style class, using a specific ASCII art as shown in the Synopsis. You
then modify the border characters (the lines, not the spaces and the dots)
according to your actual style. This is a convenient way to define border styles
instead of declaring the characters specifically using a hash. Note that empty
border characters are not supported by this role.
For more complex border styles, you define C<@PICTURES> instead, with each
element being a hash:
# this style is single bold line for header rows, single line for data rows.
our @PICTURES = (
{
# imagine every line is a header-row separator line (theoretically, the
# top and bottom lines won't ever be used as separator though)
for_header_data_separator => 1,
picture => <<'_',
âââââââââ¯ââââ¯ââââ'
â¿ ..... â¿ , â¿ . â¿'
â¿ ..... â¡ââââââââ«'
â¿ ..... â¿ . â¿ . â¿'
( run in 1.235 second using v1.01-cache-2.11-cpan-39bf76dae61 )