I have an array which has one element
I am trying to convert that array element to a string with a dot added before the string
my $string = [ 'text' ];
my $convert_str = join(".", @$string);
print $convert_str;
The expected output should be
.text
I am getting the output without dot as just:
text