in reply to Re^8: 80 characters long
in thread 80 characters long
Then, your comment,
012: # strip out all Carriage Returnsmatches neither what you say you want to do, nor what you are doing. There's no mechanism in your code to remove "carriage returns" ... and you can't very well replace each tilde with a "carriage return" and retain the tildes.
013: #
014: # Process the file by replacing each tilde (~) with a carriage return / line feed and
015: # save the file in the correct file format.
What's more, the output I see appears to retain the tildes.
So perhaps you should clarify your question (preferably, after clearing up your understanding of what text-wrapping IS and what Text::Wrap DOES (for which, perldoc Text::Wrap should help.)
|
|---|