Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Parsing a text file without newlines

by Anonymous Monk
on Dec 14, 2004 at 15:55 UTC ( [id://414737]=note: print w/replies, xml ) Need Help??


in reply to Parsing a text file without newlines

Tom... Ran across similar problem myself with some WWW stuff... There's no standard definition on simple TEXT files between DOS, WIN, UNIX, etc... Windows uses a <CR><LF> (2-chars) as it's new line "\n". Other systems use just a <CR> which is "\c", while others yet use just a <LF> which is "\l". "Smart" editors accomodate these differences. Try making a small change and saving the file, some editors will convert to your native machine. Lastly, try doing a "HEX" or "OCTAL" dump of the source file and parse the lines base on what you see there.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://414737]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2024-03-29 14:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found