how big can a scalar get?

Discussion in 'Perl Misc' started by Vassilis Tavoultsidis, Aug 13, 2003.

  1. What happens if I make a simple scalar variable big? What memory problems it
    can give me and what is the limit?

    e.g.

    $t = "";
    $maxlen = 100000;
    while (length($t) < $maxlen)
    {
    $t = $t.$i."|";
    };
     
    Vassilis Tavoultsidis, Aug 13, 2003
    #1
    1. Advertising

  2. Vassilis Tavoultsidis wrote:
    > What happens if I make a simple scalar variable big? What memory problems it
    > can give me and what is the limit?
    >


    It can be as big as you like. You are only limited by the size of your
    computer's memory.

    Derek.

    [Remove NOSPAM to reply directly]
     
    Derek Thomson, Aug 13, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Shaguf
    Replies:
    0
    Views:
    540
    Shaguf
    Dec 24, 2008
  2. Shaguf
    Replies:
    0
    Views:
    496
    Shaguf
    Dec 26, 2008
  3. Shaguf
    Replies:
    0
    Views:
    269
    Shaguf
    Dec 26, 2008
  4. Shaguf
    Replies:
    0
    Views:
    245
    Shaguf
    Dec 24, 2008
  5. Clint Olsen
    Replies:
    6
    Views:
    389
    Jeff 'japhy' Pinyan
    Nov 13, 2003
Loading...

Share This Page