in reply to Re: reading file from the end till some value is found
in thread reading file from the end till some value is found
and got the same letter soup. What is wrong? I tried to redefine end of line by setting local $/ as "something at the beggining of the file" and something not in the file but it doesnt helped (and did similar in File::ReadBackwards->new( $filename_in,"something as above" ))). Please help.open(DATAFILE, $file); while (defined ($line = <DATAFILE>)) { chomp $line; print $line } close(DATAFILE);
|
|---|