From a7aefa9bb1e0d7d39e51e74215c3b6af31909e5d Mon Sep 17 00:00:00 2001 From: Steve Hancock Date: Mon, 11 Dec 2023 07:57:09 -0800 Subject: [PATCH] update examples --- bin/perltidy | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/bin/perltidy b/bin/perltidy index ea434123..89603dd6 100755 --- a/bin/perltidy +++ b/bin/perltidy @@ -66,6 +66,8 @@ formatter which is described in L<"HTML OPTIONS">. =head1 EXAMPLES +Here are some example perltidy commands followed by their meanings: + perltidy somefile.pl This will produce a file F containing the script reformatted @@ -118,6 +120,16 @@ Execute perltidy on file F and save a log file F which shows the nesting of braces, parentheses, and square brackets at the start of every line. + perltidy -dbs -dbl=10 somefile.pl >blocks.csv + +This will dump a table of comma-separated metrics for subroutines longer than +10 lines to F. + + perltidy -dv somefile.pl >vars.txt + +This will dump a list of unused and reused lexical variable names to +F. + perltidy -html somefile.pl This will produce a file F containing the script with -- 2.39.5