http://qs321.pair.com?node_id=11129870

no longer just digit has asked for the wisdom of the Perl Monks concerning the following question:

I'm interested to know what people think is a good default indentation for the following input:

my @headings = ( {key => 'k', name => 'Kanji', class => 'kanji'}, {key => 'skip', name => 'SKIP', class => 'skip-code'}, {key => 'co', name => 'Suggestion', class => 'skip-code'}, {key => 'disc', name => 'Discussion'}, );

Emacs' cperl-mode in its default setting (as run with emacs -Q) indents the above as follows:

my @headings = ( { key => 'k', name => 'Kanji', class => 'kanji'}, { key => 'skip', name => 'SKIP', class => 'skip-code'}, { key => 'co', name => 'Suggestion', class => 'skip-code'}, { key => 'disc', name => 'Discussion'}, );

I think most people would agree that this is a little eccentric. I'm trying to set up a better default, but what indentations do people actually use for these types of things?