slojuggler has asked for the wisdom of the Perl Monks concerning the following question:
How can I get the Hellos<sans spaces> to wrap correctly? Is it possible with this module, or do I need to roll my own solution?
The real story: The Hellos are simulating a super-long filename path(greater than 60 characters). I'd like to wrap the super-long filename so that it spans multiple lines.
Thanks for your help!
#!/usr/bin/perl -w #Text wrapping snippet use Text::Format; $text = new Text::Format; $text->columns(65); print $text->format("Hello" x 190);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Text::Format Wrapping
by Rich36 (Chaplain) on Mar 04, 2003 at 22:17 UTC | |
|
Re: Text::Format Wrapping
by Cody Pendant (Prior) on Mar 04, 2003 at 23:09 UTC | |
|
Re: Text::Format Wrapping
by Hofmator (Curate) on Mar 05, 2003 at 12:05 UTC | |
by slojuggler (Beadle) on Mar 05, 2003 at 19:39 UTC | |
by Hofmator (Curate) on Mar 06, 2003 at 08:09 UTC | |
by slojuggler (Beadle) on Mar 07, 2003 at 02:17 UTC | |
by Hofmator (Curate) on Mar 07, 2003 at 12:03 UTC | |
by slojuggler (Beadle) on Mar 07, 2003 at 03:20 UTC |