Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Uninit Value - Hash Value Compare

by choroba (Cardinal)
on Nov 05, 2020 at 15:59 UTC ( [id://11123426]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11123426]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (6)
As of 2024-04-23 09:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found