jriggs420 has asked for the wisdom of the Perl Monks concerning the following question:
I have figured out how to get a tab in there, and the leading quote, but haven't figured out a way to add the '+ to the end of the lines. I'm pretty sure I need to do something with this: direct from CPAN<quote> If you want to separate your lines with something other than \n then set $Text::Wrap::separator to your preference. This replaces all newlines with $Text::Wrap::separator. If you just to preserve existing newlines but add new breaks with something else, set $Text::Wrap::separator2 instead.</quote>____DATA_______ Here is one big long string which needs to have some formatting done t +o it before I can use it for input in a separate program. I would like it to be formatted exactly as follows (except for the exa +ct line length): ___OUTPUT______ [one tab]'Here is one big long string which '+ 'needs to have some formatting done '+ 'to it before I can use it for input '+ 'in a separate program' (no "+" on last line)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Text::Format Module q
by sauoq (Abbot) on Oct 11, 2005 at 01:04 UTC | |
|
Re: Text::Format Module q
by BrowserUk (Patriarch) on Oct 11, 2005 at 02:06 UTC |