Table of Contents

Coding Style Guidelines

Perl

  $ALL_CAPS_HERE   constants only (beware clashes with perl vars!)
  $Some_Caps_Here  package-wide global/static
  $no_caps_here    function scope my() or local() variables

The complete guide can be found here perlstyle - Perl style guide

PHP

if ((condition1) || (condition2)) { action1; } elseif ((condition3) && (condition4)) { action2; } else { defaultaction; }   switch (condition) { case 1: action1; break;   case 2: action2; break;   default: defaultaction; break; }

$var = foo($bar, $baz, $quux);

function fooFunction($arg1, $arg2 = '') { if (condition) { statement; } return $val; }

The complete guide can be found here PEAR Coding Standards