in reply to CTRL+C Regular Expression
However If you mean pressing 'Ctrl+C' the shell will send a signal (nothing to do with values) that you can trap as Athanasius said before.$ perl -e 'open F, "|cat>test" or die("cant open"); print F "\x03"; cl +ose F' $ hexdump -C test 00000000 03 |.| 00000001
$ perl -e '$SIG{INT} = sub { die "Got signal" }; while() {};' [Press CTRL+C] Got signal at -e line 1.
|
|---|