Using my with parentheses and only one variable
There are several scenarios when there is a difference: When array is on right side my @array = (‘a’, ‘b’, ‘c’); my $variable = @array; # 3 size of @array my ($variable) = @array; # ‘a’ $array[0] When list is on right side my $variable = qw/ a b c d /; # ‘d’ last … Read more