Subject: | Request: Hanging ternary style |
In Damian Conway's book, Perl Best Practices, he advocates structuring if-elsif-else lists like this example:
#Load profile in various ways
my $user_prefs = $ref_type eq 'SCALAR' ? _load_from_string( $profile )
: $ref_type eq 'ARRAY' ? _load_from_array( $profile )
: $ref_type eq 'HASH' ? _load_from_hash( $profile )
: _load_from_file( $profile );
I request a new feature in Perl::Tidy that supports this indentation.
Thanks for an enormously useful module!
-- Chris