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

Re: How would you indent this?

by Perlbotics (Archbishop)
on Mar 19, 2021 at 18:33 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (1)
As of 2024-04-25 01:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found