]> git.donarmstrong.com Git - perltidy.git/blob - docs/index.md
New upstream version 20181120
[perltidy.git] / docs / index.md
1 # Welcome to Perltidy
2
3 Perltidy is a Perl script which indents and reformats Perl scripts to make them
4 easier to read.  If you write Perl scripts, or spend much time
5 reading them, you will probably find it useful.
6
7 Perltidy is free software released under the GNU General Public
8 License -- please see the included file [COPYING](../COPYING) for details.
9
10 The formatting can be controlled with command line parameters.  The default
11 parameter settings approximately follow the suggestions in the
12 [Perl Style Guide](https://perldoc.perl.org/perlstyle.html).
13
14 Besides reformatting scripts, Perltidy can help in tracking
15 down errors with missing or extra braces, parentheses, and square brackets
16 because it is very good at localizing errors.
17
18 ## Documentation
19
20 - [A Brief Perltidy Tutorial](./tutorial.html)
21
22 - [Perltidy Style Key](./stylekey.html) will help
23  in methodically selecting a set of style parameters.
24
25 - [The Perltidy man page](./perltidy.html) explains how
26 to precisely control the formatting details.
27
28 - [The Perl::Tidy man page](./Tidy.html) discusses how to use the Perl::Tidy module
29
30 - [Change Log](./ChangeLog.html)
31
32
33 ## Prerequisites
34
35 Perltidy should run on any system with perl 5.008 or later.
36 The total disk space needed after removing the installation directory will be
37 about 2 Mb.
38
39
40 ## Download
41
42
43 - The most recent release is always at [CPAN](https://metacpan.org/release/Perl-Tidy)
44
45 - The most recent release is also at [sourceforge](https://sourceforge.net/projects/perltidy/)
46
47
48 ## Installation
49
50 Perl::Tidy can be installed directly from CPAN one of the standard methods.
51
52 One way is to download a distribution file, unpack it and then 
53 test and install using the Makefile.PL:
54
55     perl Makefile.PL
56     make
57     make test
58     make install
59
60 The [INSTALL file](./INSTALL.html) has additional installation notes. They
61 are mainly for older sytems but also tell how to use perltidy without doing an installation.
62
63 ## Links
64
65  - [Perl::Tidy source code repository at GitHub](https://github.com/perltidy/perltidy)
66  - [tidyall](https://metacpan.org/pod/distribution/Code-TidyAll/bin/tidyall) is a great tool for automatically running perltidy and other tools including perlcritic on a set of project files.
67  - [Tidyview](http://sourceforge.net/projects/tidyview) is a graphical program for tweaking your .perltidyrc configuration parameters.
68  - [A perltidy plugin for Sublime Text 2/3](https://github.com/vifo/SublimePerlTidy)
69
70
71 ## FEEDBACK / BUG REPORTS
72
73 A list of current bugs and issues can be found at the CPAN site [https://rt.cpan.org/Public/Dist/Display.html?Name=Perl-Tidy](https://rt.cpan.org/Public/Dist/Display.html?Name=Perl-Tidy)
74
75 To report a new bug or problem, use the link on this page .