in reply to Re^2: Perl::Tk app to manipulate pasted text on the fly
in thread Perl::Tk app to manipulate pasted text on the fly
Well.... yeah. what you described is basically half of what I was suggesting.
with Clipboard you can get things from the clipboard, and put things into the clipboard. So you could remove the upper textarea from your UI completely, and just have the (lower) textarea for the perl code, and the "eval" button. Users "copy" arbitrary text in any app so that it is in the clipboard, click the "eval" button, and your app can fetch from the clipboard, run the perl code over it, and put it back in the clipboard. no pasting/re-coping required.
(it would basically be the same as the "clipfilter" script that comes with Clipboard except that instead of executing a single command line app, it would eval code from the textarea)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Perl::Tk app to manipulate pasted text on the fly
by arbingersys (Pilgrim) on Feb 02, 2008 at 16:35 UTC | |
|
Re^4: Perl::Tk app to manipulate pasted text on the fly
by keck (Acolyte) on Feb 05, 2008 at 13:27 UTC | |
by arbingersys (Pilgrim) on Feb 11, 2008 at 20:24 UTC |