Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

80 Line Limit for 100+ files

by anshumangoyal (Scribe)
on Oct 07, 2012 at 17:45 UTC ( #997697=perlquestion: print w/replies, xml ) Need Help??
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.


    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 :)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://997697]
Approved by Corion
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2018-04-26 20:18 GMT
Find Nodes?
    Voting Booth?