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


in reply to Please explain 'list' assignment.

The way to do what you're looking for is
my $var1 = my $var2 = my $var3 = "Hello";
The reason your first piece of code doesn't do that is because it's a list assignment. That is, it takes a list of variables on the left side and a list of values on the right side. But the list on the left side has three items and the list on the right only has one, so the other two variables will get a value of undef.