Check out antirice's clipcommand.pl (Embed perl into your clipboard). Your goals seem to overlap with what he accomplished in some ways. You may even be able to use his infrastructure and reduce your dupe logic / Perl::Critic logic to a macro in his system.
I had problems getting it going, but once I got IPC::Run working (on WINXP), it worked well and I've found it to be a much appreciated small convenience at times.
In reply to Re: how to get rid of cut-and-paste sins?
by goibhniu
in thread how to get rid of cut-and-paste sins?
by hexcoder
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |