my $foo = " ";
Add six characters, three of them blank; there you go. It's not much of an effort, but in six months the maintenance programmer (and that might be
you) is going to appreciate it.
By initializing the variable to a known state, you have told the Maintainer what you thought about the potential values that $foo can contain, and explicitly selected one of them as the default. Developers who think about the small things are more likely to be thinking about the bigger issues as well. It has been my unfortunate experience that people who do not initialize their variables often have other unpleasant coding habbits.
----
I Go Back to Sleep, Now.
OGB