in reply to Re^4: Why i am not able to print any statment after while loop
in thread Why i am not able to print any statment after while loop
you actually delete the output file instead of deleting the input file.unlink ($file);
Otherwise, don't worry too much about the "uninitialized" warnings you get (in your screen shot), they are most probably due to an empty line at the end of your input file, so that the $sMonth, $sDate, $sTime variables don't get populated for that empty line. Just add a line like this:
after the split (just after line 14), and this should suppress these warnings.next unless defined $sMonth;
|
|---|