Beefy Boxes and Bandwidth Generously Provided by pair Networks Joe
"be consistent"

Comment on

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

and:  <code> code here </code>

  • Please read these before you post! —
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Log In?

    What's my password?
    Create A New User
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    As of 2013-12-20 18:35 GMT
    Find Nodes?
      Voting Booth?

      How do you parse XML?

      Results (432 votes), past polls