in reply to Perl Style: Is initializing variables considered taboo?

Some people like to differentiate "doesn't have a value yet"

my $x;

from "has the value undef (or false)

my $x = undef; my $x = 0;

Perl, of course, doesn't case. It's stylistic semantics.

Now, if you do the following, it's a bit silly:

my $x = undef; if (cond()) { $x = f(); } else { $x = g(); }