Skip to content

Commit

Permalink
added a few table examples
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Feb 6, 2014
1 parent a729dfc commit 4b316ec
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/Mojo/Util.pm
Expand Up @@ -653,7 +653,13 @@ available through L<Time::HiRes>.
Simple row-oriented table builder for command line tools, the first row
contains the maximum width for each column, if one column doesn't require its
full quota, the next one inherits it.
full quota, the next one inherits the rest.
# "foo bar\nbaz yad\n"
table [[3, 3], ['foo', 'bar'], ['baz', 'yada']];
# "foo bar\nbaz yada\n"
table [[4, 3], ['foo', 'bar'], ['baz', 'yada']];
=head2 trim
Expand Down

0 comments on commit 4b316ec

Please sign in to comment.