Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Parse line with LF character within

Status
Not open for further replies.

CJason

Programmer
Joined
Oct 13, 2004
Messages
223
Location
US
I am reading a file, line by line, where each line has a mixture of "regular" characters as well as CONTROL characters. I works fine...EXCEPT when there is a LineFeed character in the line. Perl is determining that that is the end of the line...when, actually, there is more on the line.

I've cheesed something together where I replace the LineFeed with the character "X", then I append the next line to it. But, this isn't very elegant.

Is there a better, more elegant way, to hand this situation?

Thanks in advance!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top