Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: How would you indent this?

by choroba (Cardinal)
on Mar 18, 2021 at 10:24 UTC ( [id://11129901]=note: print w/replies, xml ) Need Help??


in reply to How would you indent this?

I'd probably use this style:
my @headings = ({key => 'k', name => 'Kanji', class => 'kanji' +}, {key => 'skip', name => 'SKIP', class => 'skip-c +ode'}, {key => 'co', name => 'Suggestion', class => 'skip-c +ode'}, {key => 'disc', name => 'Discussion'});
But that's just my personal preference (you can guess, I prefer compactness).

At work, we don't align at all, and use tabs to indent, so we'd get the boring

my @headings = ( { key => 'k', name => 'Kanji', class => 'kanji' }, { key => 'skip', name => 'SKIP', class => 'skip-code' }, ... );
map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2024-04-25 23:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found