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.
In reply to Re^2: catching ctrl+key combination
by SuicideJunkie
in thread catching ctrl+key combination
by maurice_chevalier
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |