Beefy Boxes and Bandwidth Generously Provided by pair Networks Russ
Perl: the Markov chain saw
 
PerlMonks  

Re: problem with subroutine and passing hash

by moritz (Cardinal)
on Jul 05, 2012 at 08:22 UTC ( #979986=note: print w/ replies, xml ) Need Help??


in reply to problem with subroutine and passing hash

You have asked 15 questions here, and either don't know how to debug and fix your programs, or you're too lazy to do it. That needs to change. Learn it and practise it, it's an essential skill in programming.

As a hint, the warning means that $matching_key is undef. So start to print interesting variables in the code, and compare them to what you would expect them to contain, until you find the root cause of your error.

Data::Dumper can help you with printing your data structures.


Comment on Re: problem with subroutine and passing hash

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (15)
As of 2014-04-18 20:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (471 votes), past polls