On 9 March 2010 11:49, Shlomi Fish <[email protected]> wrote: > Otherwise you can assign several variables the same initial value using the x > operator: > > my ($x, $y, $z) = (("test") x 3); > > Note that both pairs of parentheses on the right are required.
Are the outer pair really required? I would have thought that assigning to a list puts the RHS in list context anyway without requiring parenthesis to force it, and testing seems to confirm this. Phil -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] http://learn.perl.org/
