On Nov 29, Ing. Branislav Gerzo said:
I'd like to know if there is module for following:
Yes, Perl6::Form. It's a Perl 5 implementation of Perl 6's formats.
11111111112
12345678901234567890
=== OUT ===
| This is just |
| small sentence |
| about nothing. |
=== OUT ===
So, I'd like to define "|" as start and as end, word-wrapped text,
and length of line is lets say "20" chars.
You could use Perl 5's formats, but they're ugly to work with.
Perl6::Form presents them in a simpler and better fashion.
use Perl6::Form;
print form
"| {[[[[[[[[[[[[[[[[} |",
$string
;
does what you want. See the module's documentation for details.
You'll have to download the module from CPAN, since I highly doubt you
already have it.
--
Jeff "japhy" Pinyan % How can we ever be the sold short or
RPI Acacia Brother #734 % the cheated, we who for every service
http://www.perlmonks.org/ % have long ago been overpaid?
http://princeton.pm.org/ % -- Meister Eckhart
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>