Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: How would you indent this?

by Perlbotics (Bishop)
on Mar 19, 2021 at 18:33 UTC ( #11129981=note: print w/replies, xml ) Need Help??


in reply to How would you indent this?

Not directly addressing your question, but perhaps avoidance is an option?

my @headings2 = map { { key => $_->[0], name => $_->[1], class => $_-> +[2] } } #-- KEY NAME CLASS ---- [ qw(k Kanji kanji ) ], [ qw(skip SKIP skip-code) ], [ qw(co Suggestion skip-code) ], [ qw(disc Discussion), undef ];

The difference between your AoH and @headings2 is, that $heading2[3]->{class} exists and is undef. My Emacs (cperl-mode) does not re-indent this block.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2022-05-16 19:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (63 votes). Check out past polls.

    Notices?