The equivalent to your code is, as others have pointed out:
$str = join( '', @arr );
Please read the docs on join. You could also do:
{ local $" = ''; # see perlvar $str = "@arr"; }
Which might be faster. See perlvar. Also check out Data::Dumper - even if its format is not what you want, the code inside might be enlightening with regard to creating string representations of various variable types.
In reply to Re: From Array 2 string
by radiantmatrix
in thread From Array 2 string
by jeanluca
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |