Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Hash Uninitialized Values Errorby Anonymous Monk |
on Dec 26, 2013 at 00:30 UTC ( [id://1068384]=note: print w/replies, xml ) | Need Help?? |
Well, I've run that code through perltidy to see what I can see, and that looks very much like something called spaghetti code ... its to hard to read for humans, to hard to fix for humans, me included
So my advice, if you want to solve your warning, start rewriting the program to work without goto See Text Based Perl Game and especially the responses (and links in responses) for specifics So in the end you write something like, something short, where the control-flow is easy to seee (birds eye view), no gotos :) no spaghetti
And when you get "use of unitialized ..." you can focus only on one small subroutine, you Data::Dump::dd( \@_ ) and can debug only this one small part Good luck
In Section
Seekers of Perl Wisdom
|
|