Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Section Dividers - What are your thoughts

by hippo (Chancellor)
on Jun 05, 2020 at 14:20 UTC ( #11117717=note: print w/replies, xml ) Need Help??


in reply to Section Dividers - What are your thoughts

There may be some switch in Perltidy so that it doesn't do the indent in the middle, I haven't found an answer yet.

The documentation says:

       -isbc,  --indent-spaced-block-comments
           If there is no leading space on the line, then the comment will not
           be indented, and otherwise it may be.

And thus we see:

$ cat 11117714.pl sub foo { my $i = shift; #################### # Name or Description of Code Section #################### return ++$i; } $ perltidy -npro -isbc < 11117714.pl sub foo { my $i = shift; #################### # Name or Description of Code Section #################### return ++$i; } $

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (4)
As of 2020-09-28 18:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If at first I donít succeed, I Ö










    Results (144 votes). Check out past polls.

    Notices?