in reply to text editor in perl.

Of course. You could start by finding out about Tk. Tk how-to? tells you how to run the Tk widget demo which is a good place to get a feel for Tk and has a demo editor. Tk Tutorial, Featuring Your Very Own "Perl Sig/OBFU Decoder Ring" may help too. For a sample editor you might like to take a look at PerlMonks Editor.


DWIM is Perl's answer to Gödel

Replies are listed 'Best First'.
Re^2: text editor in perl.
by atcroft (Abbot) on Jun 21, 2006 at 03:20 UTC

    A long time ago I ran across mention of an editor as a perl one-liner. (It may have been here-I honestly can't recall.) The code went (line broken for readability here):

    perl -MTk -MTk::TextUndo \ -e "(tkinit)->Scrolled('TextUndo')->pack; MainLoop"

    (By the way, if anyone might know the original attribution for that bit of code, please let me know-I've found it quite useful from time to time, and would love to direct credit where it is due.)

    Update: (21 Jun 2006) A trip to the a good search managed to find a mention of the code above dating from a 2002 thread on editing large text files, which could very well have been where I might have first encountered it.