X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=docs%2Ftutorial.html;h=4e11efc41034558d53baf4db57dcc37a74e2575d;hb=7f27e55dce5925b2bbe8fcfca64f385e917a52be;hp=7031763bedeaa03b8e66e6ea6990fb3a6b46504e;hpb=657098da8da16dccd551721ffc180956d8aab7fc;p=perltidy.git diff --git a/docs/tutorial.html b/docs/tutorial.html index 7031763..4e11efc 100644 --- a/docs/tutorial.html +++ b/docs/tutorial.html @@ -136,7 +136,7 @@
 perltidy *.pl
-

and in this case, each of the output files will be have a name equal to the input file with the extension .tdy appended. If you decide that the formatting is acceptable, you will want to backup your originals and then remove the .tdy extensions from the reformatted files. There is an powerful perl script called rename that can be used for this purpose; if you don't have it, you can find it for example in The Perl Cookbook.

+

and in this case, each of the output files will be have a name equal to the input file with the extension .tdy appended. If you decide that the formatting is acceptable, you will want to backup your originals and then remove the .tdy extensions from the reformatted files. There is a powerful perl script called rename that can be used for this purpose; if you don't have it, you can find it for example in The Perl Cookbook.

If you find that the formatting done by perltidy is usually acceptable, you may want to save some effort by letting perltidy do a simple backup of the original files and then reformat them in place. You specify this with a -b flag. For example, the command