Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

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.

Comment on 80 Line Limit for 100+ files
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 :)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://997697]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2014-12-21 05:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (103 votes), past polls