in reply to Storing data in Array

is there a max size of a scalar? i'm pretty sure it too is dynamically growable as needed... it's not necessarily pretty or effecient when it gets that large.. but I've never run into a size limit with vars/scalars....

Replies are listed 'Best First'.
RE: Re: Storing data in Array
by merlyn (Sage) on Aug 16, 2000 at 23:44 UTC
    No. "fills available memory" is more likely to be your upper bound than any arbitrary "power of two minus one" that most other languages limit you at.

    The only common limit you may bump into is the length of a Perl identifier. 255 characters before Perl 5.6, and lifted to unlimited in 5.6!

    -- Randal L. Schwartz, Perl hacker

RE (tilly) 2: Storing data in Array
by tilly (Archbishop) on Aug 17, 2000 at 03:03 UTC
    Actually I have been very impressed with how efficient Perl is on performance. Memory, well that is another story. But try this:
    foreach (1..1000000) { $str .= "hello\n"; }
    Now try its equivalent in another language, like C++, JavaScript, etc.

    Impressed yet? You should be!