Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Is there a length limit to a string? In a flat file?

by Biker (Priest)
on Dec 21, 2001 at 17:53 UTC ( [id://133751]=note: print w/replies, xml ) Need Help??


in reply to Is there a length limit to a string? In a flat file?

Juerd already answered this from a Perl point of view. I'll answer the file oriented part of the question:

A file does have no notion of 'lines'. A file is an ordered collection of bytes with specific values. It is the software that reads and/or writes the file that decides what a line is.

The convention says that in the DOS/Windows world a line is delimited by CRLF and that in the UNIX world a line is delimited by LF. But this is only a convention. (Which is clearly indicted by the fact that DOS and UNIX have different conventions. ;-)

As long as your file system can cope with it, you can make the file as big as you want. You can thereby store as long a 'line' as you want in the file.

  • Comment on Re: Is there a length limit to a string? In a flat file?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (2)
As of 2024-04-19 19:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found