in reply to Send control break in PERL

"Is there a way to solve this using any perl commands"

The Perl function to send a signal to a process is kill.

$ perl -E 'kill TERM, $$' Terminated: 15 $
"... should stop only when we send CTRL_C"

If you need to use "internal command, of our company", I'm wondering if the value of "char" should be a 'Ctrl-C' character (i.e. a single character with the ASCII code 3), instead of the 6-character string "CTRL_C". Here's a couple of ways to generate a 'Ctrl-C' character:

$ perl -E 'say ord "\cC"' 3 $ perl -E 'say ord "\x{3}"' 3

— Ken