in reply to Re: Storing data in Array
in thread Storing data in Array

Thank you for the quick reply. I made a mistake in writing the question. Actually, I was actually inquiring about the maximum size of variable and increasing its size but instead wrote an array. Would you be kind enough to shed some light on this? Thank You!

Replies are listed 'Best First'.
RE: RE: Re: Storing data in Array
by lhoward (Vicar) on Aug 16, 2000 at 23:50 UTC
    So what you're after is the maximum size of a scalar variable? (what other languages would call a string, although perl's scalars also handle numeric data)

    Scalars (like all perl datatypes) expand and contract dynamically to fit the amount of data you try to stick in them. I have used large scalars before with no problems. I just ran some quick tests on my system and stuck a 10MB chunk of data into a scalar and perl didn't even break a sweat.