in reply to Determining new file
Update: Corrected eof() to eof# insert dashes just before last line of last file while (<>) { # Do stuff with each line if (eof) { # check for end of current file print "I am at the end of the file\n"; close(ARGV); # close or last; is needed if we # are reading from the terminal } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Determining new file
by Thelonius (Priest) on Mar 28, 2003 at 07:36 UTC |