in reply to How can I find the occurrence of a variable in each line of an array

You have a typo in the code you posted. "$Hold it" is not a valid variable. need to change it to $hold_it or $holdit, as seen further down in your code.
  • Comment on Re: How can I find the occurrence of a variable in each line of an array

Replies are listed 'Best First'.
Re^2: How can I find the occurrence of a variable in each line of an array
by stevieb (Canon) on Sep 24, 2015 at 02:10 UTC

    There are many "typo"'s... "For each", "Chomp". It's pretty clear this is pseudo code. What should be pointed out is that all of it should be put into <code></code> tags.

      There are many "typo"'s... "For each", "Chomp". It's pretty clear this is pseudo code.

      Probably auto correct from some phone or some such ... seriously who is going to write "Chomp" in pseudocode :D

        You're really going to pinch me on just "Chomp"? ;)

        chomp figured in the issue last time he asked this question. He was reading from a file, not an array, so it made sense then.

        Dum Spiro Spero