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

Re: Can your editor do this?

by AgentM (Curate)
on Apr 11, 2001 at 20:37 UTC ( #71733=note: print w/replies, xml ) Need Help??

in reply to Can your editor do this?

Emacs comes with elisp scripts to do just that as well as similar things. You can arbitrarily collapse function bodies using a simple command sequence. Additionally, if you know elisp (I won't pretend that I do), you can really do anything. For example, if you decided that you wanted to collapse every third recursion of braces, it's a very short elisp script. In your case, I would throw some boundary separators around the block you want to hide. In fact, braces would be fine for this. Additionally, if you find yourself using common code among several programs that you decide that you are not interested in, separate it into a separate library. Even within your program, you should separate your operations into functions for clarity. Except for me, most programmers I know like to have main functions no longer than twenty lines. That should help you clean up.
AgentM Systems nor Nasca Enterprises nor Bone::Easy nor Macperl is responsible for the comments made by AgentM. Remember, you can build any logical system with NOR.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://71733]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (9)
As of 2017-05-25 17:33 GMT
Find Nodes?
    Voting Booth?