Text::Format - Various subroutines to format text. https://www.cpan.org/
Go to file
2024-01-06 09:48:06 +01:00
perl-Text-Format.spec update to 0.62 [release 0.62-1mamba;Mon Jan 10 2022] 2024-01-06 09:48:06 +01:00
README.md perl 5.16 mass rebuild [release 0.52-3mamba;Tue Nov 13 2012] 2024-01-06 09:48:06 +01:00

perl-Text-Format

The format routine will format under all circumstances even if the width isn't enough to contain the longest words. Text::Wrap will die under these circumstances, although I am told this is fixed. If columns is set to a small number and words are longer than that and the leading 'whitespace' than there will be a single word on each line. This will let you make a simple word list which could be indented or right aligned. There is a chance for croaking if you try to subvert the module. If you don't pass in text then the internal text is worked on, though not modfied. Text::Format is meant for more powerful text formatting than Text::Wrap allows. I also have a module called Text::NWrap that is meant as a direct replacement for Text::Wrap. Text::NWrap requires Text::Format since it uses Text::Format->format to do the actual wrapping but gives you the interface of Text::Wrap