There is no difference between @list= 1,2,3,4; and @list=(1,(2,3,(4)));
Careful! Precedence makes a big difference between those two. You're thinking of @array = (1, 2, 3, 4) versus @array = (1, (2, 3, (4))).
In reply to Re^2: scalar in list context
by chromatic
in thread scalar in list context
by manishrathi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |