From: Steve Hancock Date: Mon, 11 Dec 2023 15:57:09 +0000 (-0800) Subject: update examples X-Git-Tag: 20230912.07~5 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=a7aefa9bb1e0d7d39e51e74215c3b6af31909e5d;p=perltidy.git update examples --- 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