Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^4: Some thoughts around the "is Perl code maintainable" discussion

by renormalist (Sexton)
on Aug 14, 2007 at 09:40 UTC ( #632434=note: print w/replies, xml ) Need Help??


in reply to Re^3: Some thoughts around the "is Perl code maintainable" discussion
in thread Some thoughts around the "is Perl code maintainable" discussion

> One thing that is occasionally annoying is the
> confusion between "multi line" anonymous hashrefs and
> code blocks: to cope with that I often put parentheses
> instead, that I substitute with curlies later. Not
> terribly hard, but... well, annoying.

In my extensions to cperl-mode for Perl6 syntax (and here) I made a Perl6 like distinction between hashes and blocks in a way that no whitespace is allowed before the curlies of hashes. With that the distinction of hashes and blocks generally works better.

I always use my enhanced variant of cperl-mode also for Perl5 code due to features like this, so maybe you also give it a try.

  • Comment on Re^4: Some thoughts around the "is Perl code maintainable" discussion

Replies are listed 'Best First'.
Re^5: Some thoughts around the "is Perl code maintainable" discussion
by blazar (Canon) on Aug 16, 2007 at 14:54 UTC
    I always use my enhanced variant of cperl-mode also for Perl5 code due to features like this, so maybe you also give it a try.

    Thank you very much, and good to let people know, for all the others experiencing a similar problem. But you wrongly assumed I use something a .el thingie could run on: however do not fear, I'm not in "the" other camp. Amongst the two contendants I chose a third beast... :-)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2021-02-28 19:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?