Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Perl's comma operator , performs several duties. The most widely known duty is to serve as a list separator. List separators are called fat commas [Conway 2005].:

Code Block
my @list = (2, 3, 5, 7);

...

The potential for confusing thin commas with fat commas in list context is large enough to forbid use of thin commas. Commas shall should be used only to separate items in list context.

...