in reply to Re^4: Read the last line in a text file
in thread Read the last line in a text file

Did you trying using your own resources to find the answer?

perldoc -f chomp

You'll find the documentation that came with your installation will help you learn.