Hi!

Perl has no string length limit. You are only limited by the amount of
memory that is available.

If your program is misbehaving then I fear it is the programs error (or well
the person that wrote it ;-) rather then perl or any limit on the length of
a string.

And as for the current implementation, i think it's 2 or 4 GB (uint/sint index into string length?).

But basically, if you have a single scalar of that size, the perl interpreters limits should be the least of your problems. If you're going this way, please redesign (a single, accidental copy of a string has the potential to bring the system to a standstill).

But a few megabytes won't be any problem...
...until you do something unwise like split// and turn you scalar into a multi-million elements array.

LG
Rene

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to