Mental block has set in... how in the world can I limit the length of a string in a file to take a very large file and set all lines to be a maximum of 64 characters in length?
Using Perl 5 please. HELP. Thanks.
No not really... thanks for the quick reply though...
length (of total field) is fine... what I am trying to do is break up the field contents as it is being written to file in 64 character max length lines.. so when the file is viewed again it will be set to be justified at 64 characters per line... i.e.; to fit email width without email adding additional line breaks to the file.
Lee
I am afraid I am a novice with Perl but this does do what you need - albeit a bit messy as it will cut words up - I will try to work on one that will not
You can do it in plain perl too, but I'm a bit too lazy right now to try and make it work reliably. If you insist, attempt something along the lines of
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.