Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: How would you indent this?

by ikegami (Patriarch)
on Mar 18, 2021 at 00:58 UTC ( [id://11129871]=note: print w/replies, xml ) Need Help??


in reply to How would you indent this?

I don't think I've ever seen a style where a { on its own line isn't matched by a } on its own line. The code you posted is very jarring. At a glance, I would suspect improper indentation or a missing closing braces. You're reader's first impression shouldn't be that it's broken code.

I'd use this:

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' }, );

The idea is to make the differences between the lines stand out.

Seeking work! You can reach me at ikegami@adaelis.com

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (3)
As of 2024-04-24 00:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found