Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by StoneSoup

  1. StoneSoup

    Hash of arrays question

    before this there is a while loop and $level is initialized before that. $level is like a counter so it is incremented each time the while loop executes. Would there be a problem if $hash{$level} is undefined and I am trying to get the length of that undefined array?
  2. StoneSoup

    Hash of arrays question

    $level is defined in my code. I redid the length line as you recommended, but now I get no output at all. :(
  3. StoneSoup

    Hash of arrays question

    Kevin, I tried what you said and I got this error: "Can't use an undefined value as an ARRAY reference
  4. StoneSoup

    Hash of arrays question

    It gives an error saying that you cannot put in a slice of a hash. Well it did when I used push
  5. StoneSoup

    Hash of arrays question

    So, I have a hash of array. The hash and arrays are initialized without a given length, so both are supposed to expand. I have isolated my problem to the latter 2 of the following three lines. my $oldLength = @hash{$level}; $hash{$currentLevel}[$oldLength]=$var1...

Part and Inventory Search

Back
Top