ctrl + d
Today I needed to send ctrl + d to a program that I was calling form Perl. After a lot of digging I was able to determine that ctrl + d is ASCII character 4. In Perl speak that's:
$char = chr(4)
$char = chr(4)