Previous Next Up

A hash definition list

Here is the input file unit.t:
%unitscale=("in",72,"pt",72.27/72,"pc",12,"mm",72/25.4,"cm",72/2.54,
"\\hsize",100,"\\vsize",100,"\\textwidth",100,"\\textheight",100,
"\\pagewidth",100,"\\linewidth",100);

The command perltidy unit.t produces a file named unit.t.tdy with this result:
%unitscale = (
  "in",           72,        "pt",          72.27 / 72,
  "pc",           12,        "mm",          72 / 25.4,
  "cm",           72 / 2.54, "\\hsize",     100,
  "\\vsize",      100,       "\\textwidth", 100,
  "\\textheight", 100,       "\\pagewidth", 100,
  "\\linewidth",  100
);

Previous Next Up