Berkeley CSUA MOTD:Entry 20461
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2024/12/24 [General] UID:1000 Activity:popular
12/24   

2001/1/29-31 [Computer/SW/Languages/Perl] UID:20461 Activity:moderate
1/28    http://perltidy.sourceforge.net
        This is a "beautifier" for Perl (like indent(1) for C). It hasn't been
        really announced yet; the author would like it if people tried it out
        to see if they can find real problems before it is announced to the
        world. (Perl is hard to parse, so it will always be possible to write
        code that perltidy treats differently than perl does; but it should
        work on all code that people actually write, including obfuscated perl
        contest entries.) --Galen
        \_ but perl is all about writing cryptic one-liners.
           \_ The perl beautifier will remove all the carriage returns for you.
           \_ no, it just converts it to java
        \_ Seems to work pretty well; I'd like an option to make/leave
           lists/hashes as:
           %foo = (
             a => 1,
             b => 2
           );
           instead of:
           %foo = (
             a => 1,
             b => 2);
           --dbushong
           \_ That's the default; did you mean you want the two-line version?
              \_ Sorry, without the trailing comma too; corrected above.
                 --dbushong
                   \_ the perl whore
                      \_ You know, Dave, Java would be faster for that. -Ilya
                         \_ DA STARS. WE WANT TO KNOW ABOUT DA STARS.
                         \_ You show me that Java is faster for declaring that
                            hash, in terms of "faster to write" or "faster
                            to run", and maybe I'll believe you.
Cache (255 bytes)
perltidy.sourceforge.net
Cleaning up code from a code generator The formatting can be controlled with command line parameters. The default parameter settings approximately follow the suggestions in the 8 Perl Style Guide. Perltidy can also output html of both pod and source code.