Versions Compared

Key

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

...

Some functions do not define what they return in list or scalar context. For instance, according to the {[perlfunc}} manpage, the sort() function "sorts the LIST and returns the sorted list value. In scalar context, the behaviour of "sort()" is undefined.".

Do not invoke a function in a context for which it is undefined.

Noncompliant Code Example (sort())

...