in reply to Why i am not able to print any statment after while loop
I would recommend that you remove the following line from your code:
as the 'uninitialized' warnings would tell you about potential errors.no warnings 'uninitialized';
A couple of additional point.
is better written:... = split(/ {1,}/, $line);
Take a look at localtime in list context, rather than using it in scalar context and then splitting the output.split(/ +/, $line);
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".
|
|---|