Text-Reform is a project mainly written in Perl, it's free.
Manual text wrapping and reformatting - Perl programming module
Text::Reform version 1.20
NAME Text::Reform - Manual text wrapping and reformating
DESCRIPTION The module supplies a re-entrant, highly configurable replacement for the built-in Perl format() mechanism.
INSTALLATION
To install this module, run the following commands:
perl Makefile.PL
make
make test
make install
Alternatively, to install with Module::Build, you can use the following commands:
perl Build.PL
./Build
./Build test
./Build install
DEPENDENCIES
None.
COPYRIGHT AND LICENCE
Copyright (C) 2000-2007, Damian Conway
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.