Scripting >> Perl >> How to read one line at a time from a text file

1.      while (<FILEHANDLE>)
# put commands to process the line here, <FILEHANDLE> will contain the line read

2.      no actual read command needed, a newline will be read into $_ till eof encountered.

3.      If need to remove the "\n" character at the end, use chop.