in reply to Perl hangs within sleep

Welcome jitendrasingh1386,

Since you really didn't give enough information to get a 'real' answer, this is just a guess at what could be happening.

You called another script/program that is waiting for input from the command prompt, and when you type '^C' the script/program terminates and your script gets control again.

Some additional information like *nix or windows, which Perl version, etc., may help get a better answer.

Good Luck!

"Well done is better than well said." - Benjamin Franklin