Keep It Simple, Stupid | |
PerlMonks |
Re^5: Whats its bad here?by Corion (Patriarch) |
on Sep 25, 2009 at 13:07 UTC ( [id://797497]=note: print w/replies, xml ) | Need Help?? |
That's what use strict; is for. It forces you to predeclare your variable names, so it can catch mistyped variable names. If you predeclare $vTemp2 like this:
your program will work and you get the benefit of Perl alerting you when you mistype the name.
In Section
Seekers of Perl Wisdom
|
|