User:Dreftymac/Docs/ClevernessWithoutElegance

Examples

edit

The variance in Perl 5 was inspired by number agreement in English and many other natural languages:

  "This apple."                    # CORRECT
  "These apples."                  # CORRECT
  "This third apple."              # CORRECT
  "These third apple."             # WRONG

The change in Perl 6 is meant to reduce the cognitive load of recognizing when to use the @ or the $.