Click here to get back home

Perltidy option to generate/keep BSD Style of bracketing ?

 HomeNewsGroups | Search | About
 comp.lang.perl.misc    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Perltidy option to generate/keep BSD Style of bracketing ? Asim Suter 04-19-2008
Posted by Asim Suter on April 19, 2008, 4:00 pm
Please log in for more thread options

By default it generates code like K&R style:

if( ......................... ){


}

which I do not like:

========================

I'd like it generate BSD style like following:


if( ........................ )
{

}

Is there an option in perltidy to achieve that ?
I don't seem to find one in perltify help.

TIA
Asim



Posted by Asim Suter on April 19, 2008, 4:25 pm
Please log in for more thread options

-l gnu seems to do the job.

>
> By default it generates code like K&R style:
>
> if( ......................... ){
>
>
> }
>
> which I do not like:
>
> ========================
>
> I'd like it generate BSD style like following:
>
>
> if( ........................ )
> {
>
> }
>
> Is there an option in perltidy to achieve that ?
> I don't seem to find one in perltify help.
>
> TIA
> Asim
>



Similar ThreadsPosted
[OT] PerlTidy option to close parens on function params *only* May 2, 2005, 2:00 pm
How to use -s option December 13, 2005, 10:09 am
Grep -v option November 4, 2004, 3:05 pm
ActivePerl and -P option June 3, 2005, 1:04 pm
How identify if more than one option is specified? September 22, 2006, 1:27 pm
Use of -i inplace option October 3, 2006, 2:13 pm
/e option in the s/// command June 5, 2007, 6:34 am
FAQ 5.4 How can I use Perl's "-i" option from within a program? January 26, 2005, 6:03 am
FAQ 5.4 How can I use Perl's "-i" option from within a program? April 10, 2005, 11:03 am
FAQ 5.4 How can I use Perl's "-i" option from within a program? June 26, 2005, 5:03 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap