in reply to Re: Please explain 'list' assignment.
in thread Please explain 'list' assignment.
The parentheses force the value into list context, the 'x' then makes three copies of that single value list, and you get ("Hello", "Hello", "Hello"), which is what OP wanted.my ( $var1, $var2, $var3 ) = ("Hello") x 3;
|
---|