Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • by Relipuj (8125) on 2007.09.19 3:29 (#57908)
    # Input/Output
    --check-syntax # Ask perl to check the syntax of the file
    --backup-and-modify-in-place # Dont output to another file
    --backup-file-extension=.tdy.bak # Backup.pl.tdy.bak
    --logfile # Save a log of what's going on

    # Formatting
    --output-line-ending=unix
    --format-skipping # Skip formatting between #<<< #>>>

    # Indentation
    --tabs # Tabs = Indentation Level
    --add-whitespace # White spaces to prettify
    --add-newlines
    --delete-old-whitespace # Don't bother with old indentations
    --delete-old-newlines
    --ignore-old-breakpoints
    --maximum-line-length=128
    --no-outdent-long-lines

    # Semicolons:
    --no-space-terminal-semicolon # No spaces before ;
    --no-space-for-semicolon
    --add-semicolons # Add them if missing before }
    --delete-semicolons # And delete them on epmty statements

    # Subscripts (, [, {
    --continuation-indentation=8 # Pretify Indent
    #--line-up-parentheses #! Doesnt work with tabs
    --closing-token-indentation=0 # Same Indent Level as where is was opened
    --no-indent-closing-paren
    --opening-paren-right
    --opening-hash-brace-right
    --opening-square-bracket-right
    --opening-token-right
    --vertical-tightness=1 # Dont break before line end
    --vertical-tightness-closing=0
    -sot # --stack-opening-token, the long opt name doesn't work!
    --comma-arrow-breakpoints=2

    # Braces
    --cuddled-else
    --no-opening-brace-on-new-line
    --opening-brace-always-on-right
    --no-opening-sub-brace-on-new-line
    --block-brace-vertical-tightness=0

    # Quotes
    --no-outdent-long-quotes
    --trim-qw

    # Code Blocks
    --no-outdent-labels
    --no-indent-closing-brace
    --blanks-before-blocks
    --blanks-before-subs

    # Keywords/Functions
    --no-outdent-keywords # Dont outdent keywords (loops)
    --space-keyword-paren
    --no-space-function-paren

    # Comments
    --indent-spaced-block-comments
    --no-outdent-long-comments
    --minimum-space-to-comment=8
    --hanging-side-comments
    --closing-side-comments # End of sub ...
    #--closing-side-comment-prefix="## <--- EOf" #! problems with old files
    --closing-side-comment-warnings # Warn if modifying an existing comment
    --closing-side-comment-maximum-text=64 # Max 64 Chars
    --blanks-before-comments

    • I'm impressed!

      Did anyone ever tell you that you have too much time on your hands? :)
      • man, you'd see my other config files and you'd say it took me several years to get them like they are... wait, it took me several years to get them like they are...

        if you want some here's a list of my must have (they're in /etc/skel/ when i finish installing a new distribution):
        - .bashrc
        - .dircolors (very exhaustive)
        - .fvwm/* (minimal theme)
        - .indent.pro
        - .inputrc (works good with a lot of apps)
        - .links/links.cfg
        - .lynxrc
        - .mc/ini (with undocumented functions)
        - .perlconsolerc
        - .perlcriticrc
        - .perlt
        • yep. I am. Thanks

          • heh, in fact i wasn't really expecting someone to reply, yet you did. Give me a few days to comment the configurations files (when possible) and i'll post them back here, or in a .bz2 file somewhere on the net. Let's say next Sunday (sept. 30) you'll get all the files.

            I just ask for the delay to clean up my config directory, it's a real mess in there and i don't have the time to sort everything right now.
            • Take your time. I asked because I was curious to see how people organize their things. Lately I seem to waste time in simple yet important tasks with a net result of less time to code :(. Having a working (and portable) set of config files is certainly an asset.

              cheers --stephan