in reply to Re: Re: Variable declaration on one line
in thread Variable declaration on one line

my $var = ''; initialises the var with the actual value - empty string.

my $var; leaves the variable undefined (undef).