in reply to Re^8: 80 characters long
in thread 80 characters long
I have been trying to figure out what you're doing and saying, and I am also stumped. Either you're not very good at telling us what you want, or you don't really know. Sorry if it's harsh, but I've been over this several times (slow day) and you're inconsistent at best.
In your code snippet, you say:
Okay, but the text before this code that says the tilde must remain and in Notepad there is a CR after each tilde. If you replace the tilde, it is by definition no longer there. So, since your description is contradictory and doesn't match the format you say you want, let's take a look at the sample text you provide and try to deduce what you want. (NOTE: perlmonks may wrap the lines for display.) You say this:
should look like this:ISA*00* *00* *28*9000000454 *ZZ*J00370 * +070926*0342*U*00401*000489661*0*P*:~ GS*HP*9000000454*J00370*20070926*03421826*489660*X*004010X091A1~ ST*835*489662~ BPR*I*6519.36*C*ACH*CCP*01*075906003*DA*0000194917*1351840597*00454 + *01*021000021*DA*304677450*20070926~ TRN*1*EFT2545408*13
ISA*00* *00* *28*9000000454 *ZZ*J00370 * +070926*0 342*U*00401*000489661*0*P*:~ GS*HP*9000000454*J00370*20070926*03421826*489660* X*004010X091A1~ ST*835*489662~ BPR*I*6519.36*C*ACH*CCP*01*075906003*DA*00001949 17*1351840597*00454 *01*021000021*DA*304677450*20070926~ TRN*1*EFT2545408*13
First line (ISA*...) breaks cleanly at 79 characters, in the middle of a "word". The remainder of the line retains its tilde (as do all the lines). Fine. But the second line (GS*...) breaks after 49 characters — when the whole line was only 64 characters! Why? Was it because of the asterisk?
GS*HP*9000000454*J00370*20070926*03421826*489660*X*004010X091A1~ ^
The third line (ST*...) is unchanged, but the fourth line (BPR*...) breaks after 48 characters (total line length 109 chars). Again, in the middle of a "word". Um...why?
BPR*I*6519.36*C*ACH*CCP*01*075906003*DA*0000194917*1351840597*00454 + *01*021000021*DA*304677450*20070926~ ^
So, not to put too fine a point on it, do you have any idea what you are talking about?
-dd
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^10: 80 characters long
by aixmike (Novice) on Oct 01, 2007 at 17:00 UTC | |
by ikegami (Patriarch) on Oct 01, 2007 at 20:12 UTC |