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.