in reply to Re: grep confusion
in thread grep confusion

Hmmm... 'Error: Not a HASH reference'
but I see where your going...

I tried re-inventing the wheel again, but everytime I push it, it still falls flat on it's side...

Replies are listed 'Best First'.
Re^3: grep confusion
by LanX (Saint) on Sep 01, 2017 at 02:15 UTC
      'Experimental keys on scalar is now forbidden'
      Let me see if I can add the %{...} and fix that...

      I tried re-inventing the wheel again, but everytime I push it, it still falls flat on it's side...
        Interesting, I came closer by using
        grep { %{$DetailSheet{ColumnName}{$_}{XlsColumn}} == 2 } keys %{$Detai +lSheet{ColumnName}}

        but i got 'can't use string ("-1") as a HASH reference' error, to which, i do use XlsColumn => -1 on the key/values that i don't use in the full 'DetailSheet' hash...

        I tried re-inventing the wheel again, but everytime I push it, it still falls flat on it's side...
Re^3: grep confusion
by PriNet (Monk) on Sep 01, 2017 at 02:14 UTC
    wait... let me try that

    I tried re-inventing the wheel again, but everytime I push it, it still falls flat on it's side...