P is for Practical | |
PerlMonks |
Help with recurring "uninitialized variable" problem.by C_T (Scribe) |
on Apr 09, 2004 at 16:39 UTC ( [id://343948]=perlquestion: print w/replies, xml ) | Need Help?? |
C_T has asked for the wisdom of the Perl Monks concerning the following question:
Greetings most wise and helpful monks!
For whatever reason, this problem keeps cropping up, so I'm hoping someone can shed some light on the problem so I can eliminate it once and for all. This code works: This code does not: I get lots of these: The program still WORKS (i.e. does what it's supposed to do), but it throws up all those warnings first. I know I'm doing something Very Dumb(TM) here, but if someone could point it out I'd be extremely grateful. I want to understand this whole "unitialized variable" thing because it keeps coming up even when I think I've initialized the variable. Apparently Perl and I have different ideas of what that means, so I want to get in line. Many thanks! C_T
Charles Thomas Madison, WI
Back to
Seekers of Perl Wisdom
|
|