Parens () construct a list which you can assign to an array.
Nit: parens group a list. The list is already there, but the precedence of = and , are such that without parentheses, only the first element of the list gets assigned.
In reply to Re^2: my $var = join('|',@array) not behaving
by chromatic
in thread my $var = join('|',@array) not behaving
by stuffy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |