Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://979986]
and the sunlight beams...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (10)
As of 2018-06-22 07:48 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (122 votes). Check out past polls.