http://www.perlmonks.org?node_id=369359


in reply to Re^3: To initialise or not to initialise?
in thread To initialise or not to initialise?

Ah okay.

I thought it might be something to do with concatenation at first, which also shows a subtle difference:

my $var1; print $var1 .= 'r', "\n"; # prints r my $var2 = ''; print $var2 .= 'r', "\n"; #prints r my $var3 = 0; print $var3 .= 'r', "\n"; #prints 0r
:)