P
Paul Harman
I need to take a block of text and introduce line-wrapping at 78 chars. A
familiar requirement, one would think };*)
Having used format before, I started there. However I wanted to capture the
data into a variable rather than write a file. I couldn't get the formline
trick to work, so instead I used the
open F, ">", \$destvariable;
....trick instead which works wonderfully.
Unfortuantely my source material has non-printable characters, which format
and/or write seem to be stripping. My google-fu is not strong enough to find
a solution to this.
Can anyone help me out? I'm starting to resign myself to writing a regular
expression loop...
Paul
familiar requirement, one would think };*)
Having used format before, I started there. However I wanted to capture the
data into a variable rather than write a file. I couldn't get the formline
trick to work, so instead I used the
open F, ">", \$destvariable;
....trick instead which works wonderfully.
Unfortuantely my source material has non-printable characters, which format
and/or write seem to be stripping. My google-fu is not strong enough to find
a solution to this.
Can anyone help me out? I'm starting to resign myself to writing a regular
expression loop...
Paul