Array-PrintCols-EastAsian
view release on metacpan or search on metacpan
[](https://travis-ci.org/zoncoen/Array-PrintCols-EastAsian) [;
# get an array which has space-fill elements
my @formatted_array = @{ format_cols( \@motorcycles ) };
# print array elements with aligning vertically
print_cols( \@motorcycles );
# print array elements with aligning vertically and fitting the window width like Linux "ls" command
pretty_print_cols( \@motorcycles );
# DESCRIPTION
Array::PrintCols::EastAsian is yet another module which can print and format space-fill array elements with aligning vertically.
# INTERFACE
## `format_cols($array_ref : ArrayRef, $options : HashRef)`
This is a method getting an array which has space-fill elements.
Valid options for this method are as follows:
`align => $align : Str (left|center|right)`
Set text alignment. Align option should be left, center, or right. Default value is left.
## `print_cols($array_ref : ArrayRef, $options : HashRef)`
This is a method printing array elements with aligning vertically.
Valid options for this method are as follows:
`gap => $gap : Int`
Set the number or space between array elements. Gap option should be a integer greater than or equal 1. Default value is 0.
`column => $column : Int`
Set the number of column. Column option should be a integer greater than 0.
`width => $width : Int`
Set width for printing. Width option should be a integer greater than 0.
( run in 1.129 second using v1.01-cache-2.11-cpan-df04353d9ac )