I have a multiple lines file that I read. It reads all lines except for the last line
The print statement got executed for all the lines of the file and did get executed (either in the if or else) for the last line of the file.
Code:
if (defined($$bb = <STDIN>)) { print LOG" in if condition\r\n"; $readCount += length($$bb); if ($readingFile) { $fileCount += length($$bb); } return 1; } else { print LOG" in else condition\r\n"; return 0; }
Comment