I have posted question related to this before and have received many suggestions.
I have a file of varying number of records of varying lengths, delimited by comas. 022,D,092,000,004,034,000,001,000,000 023,D,031,000,000,000,000,002,000,000 024,@D ,025,000,001,900,900,093,093,900,255,065,000,279,001,028,130,161,037,106,016,410,017,410,255,255,255,255 026,>,255,255,255,255,255,255,255,255 027,E,034,093,106,396,396,396,396,007 According to the hex editor each line ends in a hex 0D 0A. My question to the group is why would this line recognize that carriage return. open STATE, "STATEFILE.txt" or die; @lines = split /\n/, <STATE>; and this not recognize the same character; open STATE, "STATEFILE.txt" or die; $state = <STATE>; $a = index($state, "/\n"); Thanks Bruce Bowen
