http://www.perlmonks.org?node_id=984970


in reply to File Handles Chapter(not homework)

To read a file line by line, you typically use
while (my $line = <>) { # do something with the line }
If this construct is missing in your textbook, somebody probably tore some pages from the book.

If you meant "preceded" by "proceded", you might use $ARGV: look it up in perlvar.