7/17

2. Builtins

  • Parentheses around subroutines.

  • Parentheses cuddle subroutines.

  • No parentheses around builtins.

  • For example, good:

        split "\t", my_function($foo);
  • Bad:

        split ("\t", my_function ($foo) );
  • Certain things qualify as builtins:

    • carp

    • croak

    • List::Util qw(first max)

    • IO::Prompt qw(prompt)