anshumangoyal has asked for the wisdom of the Perl Monks concerning the following question:

I have 100+ files of Perl where very long lines of codes are written. Now the requirement is to follow 80 Column Rule i.e. no line should be more than 80 characters. Is there any tool or any automated way to do that? I tried with Notepad++ and Googled a lot but there is no tool i was able to find.

Replies are listed 'Best First'.
Re: 80 Line Limit for 100+ files
by CountZero (Bishop) on Oct 07, 2012 at 17:57 UTC
    Perl::Tidy has a "line length" parameter. See Perl Tidy documentation. 80 characters is actually the default length used.

    Code::TidyAll is also something you might want to take a look at.

    CountZero

    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

    My blog: Imperial Deltronics
      Trolling on PerlMonks must be very hard when even questions like this have a ready and sensible answer :)