|
Perl beautifier
Description
The program reads a perl program, formats the perl code correctly and writes it back into
the file.
Input and output
The input is rather simple to describe; any syntactic correct perl program. The output is similar simple;
the same program as used in the input, just correctly formatted.
Examples of program execution:
perl_format.pl graphfile.txt
Details
The formatting must take most of the structures of the language into consideration.
Proper block indentation must be observed.
We have provided some pointers in the code we have presented during the course, and
another source could be 'man perlstyle' on the command line.
We suggest that you consult with us during the project, as the concept of "proper perl formatting" can
vary quite a bit from person to person.
|