NAME String::Pad - String padding routines VERSION This document describes version 0.020 of String::Pad (from Perl distribution String-Pad), released on 2018-09-26. FUNCTIONS pad($text, $width[, $which[, $padchar[, $truncate]]]) => STR Return $text padded with $padchar to $width columns. $which is either "r" or "right" for padding on the right (the default if not specified), "l" or "left" for padding on the right, or "c" or "center" or "centre" for left+right padding to center the text. $padchar is whitespace if not specified. It should be string having the width of 1 column. $truncate is boolean. When set to 1, then text will be truncated when it is longer than $width. HOMEPAGE Please visit the project's homepage at . SOURCE Source repository is at . BUGS Please report any bugs or feature requests on the bugtracker website When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature. AUTHOR perlancar COPYRIGHT AND LICENSE This software is copyright (c) 2018, 2014 by perlancar@cpan.org. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.