in reply to Programmer Efficiency / dmacro

Yeah, I know the itch that you're scratching. cperl-mode for Emacs with (setq cperl-hairy t) does much the same thing, auto inserting braces, newlines, and blocks as you type. Rather handy, expecially when you just can't wrap your mind around exactly what conditional you need, but you do know what you want the block to do -- and will forget it if you stop to think about the conditional for too long. The woes of having limited stack space in your wetware. :)

perl -pe '"I lo*`+$^X$\"$]!$/"=~m%(.*)%s;$_=$1;y^`+*^e v^#$&V"+@( NO CARRIER'

Replies are listed 'Best First'.
Re: Re: Programmer Efficiency / dmacro
by belg4mit (Prior) on Jan 03, 2002 at 12:11 UTC
    Perhaps you need simpler blocks since wetware has a 7+/-2 chunk buffer (aka. short term memory) ;-).

    --
    perl -pe "s/\b;([st])/'\1/mg"