Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^4: perltidy for ternary operator?

by TomDLux (Vicar)
on Dec 06, 2014 at 21:36 UTC ( #1109450=note: print w/replies, xml ) Need Help??


in reply to Re^3: perltidy for ternary operator?
in thread perltidy for ternary operator?

I didn't ask how to achieve what the majority want, I asked how to achieve what I want.

As Occam said: Entia non sunt multiplicanda praeter necessitatem.

Replies are listed 'Best First'.
Re^5: perltidy for ternary operator?
by atcroft (Abbot) on Dec 07, 2014 at 04:51 UTC

    Could one not just create a second ternary operation that perl would optimize out, such as the following?

    According to B:Deparse, the second ternary operator appears to be optimized out:

    However, the code, when handled by Perl::Tidy, appears to be formatted in the manner the OP is requesting:

    I know that may not be what the OP was hoping for, but perhaps it might be an option to look at.

    Hope that helps.

Re^5: perltidy for ternary operator?
by LanX (Cardinal) on Dec 06, 2014 at 22:24 UTC
    And you got an answer: patch the code.

    There is no option for your private needs

    Cheers Rolf

    (addicted to the Perl Programming Language and ☆☆☆☆ :)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (7)
As of 2021-01-25 08:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?