A question related to Variables in Perl

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • thanawala27
    New Member
    • Mar 2007
    • 68

    A question related to Variables in Perl

    Hi,

    I came across that variables in perl can have a maximum of 256 character anything more than that is rejected

    I want to have a variable which has text which is longer than 256 characters.When the text in the variable exceeds 256, the excess text is not taken in the variable. thats because of the obvious reason (the size of the variable)

    is there any other type of variable which can hold more number of characters?

    Thanks

    Ravi
  • miller
    Recognized Expert Top Contributor
    • Oct 2006
    • 1086

    #2
    Ravi,

    There is no such limitation.

    - Miller

    Comment

    • KevinADC
      Recognized Expert Specialist
      • Jan 2007
      • 4092

      #3
      Your information is incorrect. Hash keys have a limit, I don't remember what it is, but I am sure it's longer more than 256 bytes, but thats because hash keys are strings, not variables. Besides that, scalars ($) and arrays (@) and hash values have no limit except how much memory your computer has.

      Comment

      • KevinADC
        Recognized Expert Specialist
        • Jan 2007
        • 4092

        #4
        race condition :)

        .....

        Comment

        • miller
          Recognized Expert Top Contributor
          • Oct 2006
          • 1086

          #5
          Originally posted by KevinADC
          race condition
          I win! :)

          - M

          Comment

          • KevinADC
            Recognized Expert Specialist
            • Jan 2007
            • 4092

            #6
            hehehe... :)

            ........

            Comment

            Working...