in reply to Why i am not able to print any statment after while loop

Unless I missed something, it appears that the $check1 and $check2 variables are not printed because they are not initialized anywhere in your code.

I would recommend that you remove the following line from your code:

no warnings 'uninitialized';
as the 'uninitialized' warnings would tell you about potential errors.

A couple of additional point.

... = split(/ {1,}/, $line);
is better written:
split(/ +/, $line);
Take a look at localtime in list context, rather than using it in scalar context and then splitting the output.

Update, 10:07 UTC: crossed out the first sentence: sorry, I misread too quickly your code, you are not using a $check1 but just printing the string "check1".

Je suis Charlie.