[OT] PerlTidy option to close parens on function params *only*

N

newsbot

Since I don't consider this question strictly Perl related, I've marked
as [OT]. Yet at the same time, I'm not sure where else to ask it since
no one other than Perl users would conceiveably use PerlTidy.

That said, I want to provide an option or options to PerlTidy that
format parenthesis in this fashion:

for (1..10) {
do_something( $_, "Dude" );
}

-or-

if ($a < 10) {
do_something( $a, "Dude" );
}

In other words, parens after keywords like "while," "for," and "if"
etc. stay tight (eg. no whitespace), whilst parameters passed to
subroutines are formated with one space as with "do_somthing()" above.

The PerlTidy man page provides no options that I can see other than
tight parens EVERYWHERE. Also the PerlTidy home page offers nothing
revealing either and there is no list associated with this product that
I can see. I was hoping I might trip across someone here that is
experienced enough with PerlTidy to offer a solution to the above.

Right now, I'm living with tight parens globally. But I'd rather have
white space around my parameters to subroutines.

Thanks!
-ceo
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top