in reply to Uninit Value - Hash Value Compare

That's not the code you're running. It doesn't even compile! There is a missing semicolon on the grep line.

Also, note that

my $hash = %$hashRef;

is most probably wrong, did you mean

my %hash = %$hashRef;
instead? Your version populates a scalar variable $hash with the size of the hash and the rest of the code operates on the %hash variable from the outer scope.

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

Replies are listed 'Best First'.
Re^2: Uninit Value - Hash Value Compare
by kchinger (Initiate) on Nov 05, 2020 at 16:47 UTC

    yeah, as I mentioned, I have to re-type the code, and I had to remove code/anonymize variable names and stuff because it's in a secure area that I can't copy/paste from and can't get on the internet on.

    And yes, I actually have my %hash = %$hashRef; Just a typo in what I put here, sorry.

    I think the missing semicolon it's getting away with because it's the last line in the block, that was that way in my working code. I fixed it for accuracy in my code, no changes, obviously.

    Sorry. I can try a better way to get it out of the system and anonymize it better so it actually runs fully if I need to.