Thanks for the "nonsense" note and the other advice. But keep in mind I started coding in perl only two weeks ago.
I believe nonsense does not depend on programming language.
You're declaring a variable and initializing it at the same,
but checking to see that it doesn't already have a value.
How can it already have a value if it hasn't been declared before?