Skip to content

Instantly share code, notes, and snippets.

@rbuels
Created August 21, 2009 18:33
Show Gist options
  • Save rbuels/172286 to your computer and use it in GitHub Desktop.
Save rbuels/172286 to your computer and use it in GitHub Desktop.
# A declarative version of PDD07 for perl.
# Must apply...
-l=100 # Source line width is limited to 100 characters.
-i=4 # must be indented four columns (no tabs)
-ola # Labels (including case labels) must be outdented two columns
-ci=4 # Long lines, when split, must use at least one extra level of indentation on the continued line.
-ce # Cuddled elses are forbidden: i.e. avoid } else { .
# Nice to haves...
# Freeze new lines; some really short lines look good the way they
# are, this should stop perltidy from merging them together
-fnl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment