in reply to Number as string

If you want to concatenate two variables together, either use the concatenation operator, or just interpolate them.

my ($var1, $var2) = ("variable = ", 10); # concatenate print $var1 . $var2; # interpolate print "$var1$var2";