Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Section Dividers - What are your thoughts

by hippo (Bishop)
on Jun 05, 2020 at 14:20 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11117717]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (4)
As of 2024-03-29 01:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found