Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Perl Copenhagen > Re: perltidy an...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 3 Topic 249 of 283
Post > Topic >>

Re: perltidy and else

by tobez@[EMAIL PROTECTED] (Anton Berezin) Oct 31, 2007 at 09:12 AM

Heps,

On Wed, Oct 31, 2007 at 08:44:20AM +0100, jonasbn wrote:

> Just to follow up on the discussion from yesterday, the following
statement 
> in my ~/.perltidyrc makes the if... then... else... constructs behave 
> nicely, meaning curly braces are kept on the same line.
> 
> -ce     # Cuddled elses
> 
> I does not touch my use of flow-control from Error; try... catch... 
> otherwise... finally...

Right...  and your use of try... catch... otherwise is, if I remember
correctly, like this:

   try {
     ...
   }
   otherwise {
     ...
   };

What I would like to achieve is the *same* effect for those as with
cuddled
elses, since these are control structures just like if..else..:

   try {
     ...
   } otherwise {
     ...
   };

As far as I was able to determine, this is not possible without some
patching.  I will be happy to be proven wrong.

\Anton.
-- 
We're going for 'working' here. 'clean' is for people with skills...
-- Flemming Jacobsen
 




 3 Posts in Topic:
perltidy and else
jonasbn@[EMAIL PROTECTED]  2007-10-31 08:44:20 
Re: perltidy and else
tobez@[EMAIL PROTECTED]   2007-10-31 09:12:50 
Re: perltidy and else
jonasbn@[EMAIL PROTECTED]  2007-10-31 09:31:04 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Oct 12 23:10:40 CDT 2008.