Perl/Perl Tidy

  • Search
  • Home
  • All
  • Files
  • History
  • Latest Changes

Perl

  • Amazon
  • EPSファイル作成
  • ApacheErrorLogFormatter
  • AutoHashedFuncs
  • CGI.pm
  • compareXML
  • CPAN
  • createUniqKeyList
  • DBIx-Custom
  • DBIx-NamedParams
  • decodeQuotedPrintable
  • EscapeSlash
  • GD
  • getDiskUsage
  • getHostName
  • GMTtoLocalTime
  • GoogleMapAPI
  • HostToIP
  • HttpHeader
  • HTTPアクセス
  • initConsole
  • IPアドレス範囲をマスク表現に変換
  • ListDownloader
  • MailForm
  • makeCodeHighlightKeyword
  • MatchList
  • MSSQL_ImpExp
  • MySQL-BIT
  • NetWatcher
  • nicoget
  • Object-Simple
  • packBit
  • Perl-Tidy
  • readXSV
  • SHA1
  • SortUnicode
  • updateEarth
  • W03_FOMA
  • WhoisGW
  • Windows_DLL_Call
  • XML-Simple
  • XML-XPath
  • YAML
  • オブジェクト指向プログラミング
  • キーワード置換
  • ディレクトリの再帰処理
  • ファイルの一括処理
  • ファイル名正規化
  • 全角から半角へ変換
  • 参照
  • 多次元配列
  • 文字コード
  • 日経ITpro
  • 曜日の計算(Zellerの公式)
  • 未定義コード置換
  • 特殊文字のエスケープ
  • 環境変数
  • 自動フラッシュ(バッファリング)の制御
  • 行末改行の削除

インストール

Windows Active Perl

> ppm install perl-tidy
  • ホームフォルダに設定ファイルを作成
    %HOMEPATH%/.perltidyrc

Linux

# cpanm Perl::Tidy
  • ホームフォルダに設定ファイルを作成
    $HOME/.perltidyrc

ウチの設定

-l=100	# Max line width is 100 cols
-i=4	# Indent level is 4 cols
-ci=4	# Continuation indent is 4 cols
#-st	# Output to STDOUT
-se		# Errors to STDERR
-vt=2	# Maximal vertical tightness
-cti=0	# No extra indentation for closing brackets
-pt=1	# Medium parenthesis tightness
-bt=1	# Medium brace tightness
-sbt=1	# Medium square brace tightness
-bbt=1	# Medium block brace tightness
-nsfs	# No space before semicolons
-nolq	# Don't outdent long quoted strings
-wbb="% + - * / x != == >= <= =~ !~ < > | & >= < = **= += *= &= <<= &&= -= /= |= >>= ||= .= %= ^= x="
		# Break before all operators
-b		# backup original to .bak and modify file in-place
-ce		# cuddled else; use this style: '} else {'

リンク

  • CPAN:Perl-Tidy

Home

Last edited by TakeAsh, 2018-09-01 01:15:27