>BBEdit (a fine GUI-based text editor for Macs) is capable of running >MacPerl-based filters on selected text. I understand that some other >editors (e.g., vim) also have this capability. > >I would love to have some intriguing demo filters on hand at WWDC (the >Apple World Wide Developers Conference) in a week or so. They should >have a strong "Gee Whiz!" factor. It would also be nice if they can >be explained to mortal programmers... > >Does anyone feel like suggesting (or even coding up :-) something? Here's one I use with Alpha to template new scripts, pretty clear I guess and not exactly wowee in the effects area, but it saves having to CUT n PASTE, or using a simpletext boilerplate both requiring fussing about and maybe losing the thread of what I was doing. In Alpha as long as I have one window open, running this filter will cause it to act on a seperate 'OUTPUT' window so I don't have to worry about zapping anything I'd rather leave alone, or I can manually set it to overwrite the uppermost window. __BEGIN__ #! -w use strict; use diagnostics-verbose; print<<END; \#! perl -w \#=========== declare includes ============= use strict; use diagnostics-verbose; \#========== declare variables ============= my(); \#============= script body ================ \#========= sub routine separator =========== __END__ # ===== Want to unsubscribe from this list? # ===== Send mail with body "unsubscribe" to macperl-request@macperl.org