]> git.donarmstrong.com Git - perltidy.git/commitdiff
update examples
authorSteve Hancock <perltidy@users.sourceforge.net>
Mon, 11 Dec 2023 15:57:09 +0000 (07:57 -0800)
committerSteve Hancock <perltidy@users.sourceforge.net>
Mon, 11 Dec 2023 15:57:09 +0000 (07:57 -0800)
bin/perltidy

index ea43412317572ab36dba0326c453244b2e0666ac..89603dd6a27b9615262ac484d48170eeb4acb46e 100755 (executable)
@@ -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<somefile.pl.tdy> containing the script reformatted
@@ -118,6 +120,16 @@ Execute perltidy on file F<somefile.pl> and save a log file F<somefile.pl.LOG>
 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<blocks.csv>.
+
+    perltidy -dv somefile.pl >vars.txt
+
+This will dump a list of unused and reused lexical variable names to
+F<vars.txt>.
+
   perltidy -html somefile.pl
 
 This will produce a file F<somefile.pl.html> containing the script with