Note that omitting the parentheses is bad style, if your goal is actually to assign the one-element list (0) to the array.
Nit: it doesn't really matter, for one-element lists. There's no difference between a one-element list with and without parentheses. Parentheses don't create lists--they group comma-separated expressions.
The reason you need parentheses in:
my @fib_nums = 1, 1, 2, 3, 5;... is to disambiguate precedence, not to construct a list.
In reply to Re: (RFC) Arrays: A Tutorial/Reference
by chromatic
in thread (RFC) Arrays: A Tutorial/Reference
by jdporter
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |