in reply to catching ctrl+key combination

Skip Perl, use AutoHotKey instead. To quote their home page:

AutoHotkey is a free, open-source utility for Windows. With it, you can:
The only "problem" is that it's syntax is like nothing you've ever seen. OTOH, (a) you can launch external programs, such as Perl scripts, without much effort, and (b) there's a forum that's always willing to help.

Replies are listed 'Best First'.
Re^2: catching ctrl+key combination
by SuicideJunkie (Vicar) on Jul 30, 2013 at 18:30 UTC

    I'll second that. AHK is specifically targeted for the OP use case. You can do the key monitoring, the selection grab and the pass-on-to-perl script in about one line each.

    The syntax and commands are certainly unique, so you'll want to have the AHK help file open at all times.