H
Hunter Johnson
I've got a filter written that needs to read into the target files
(logs) for some additional information (finding a person's numeric ID
by the name passed in) and then pull the records from the logs
matching that additional information. This can include records
earlier in the file than the record that let me match up the name to
the ID.
What I've done is close(ARGV) so that my first while(<>) fails, assign
the (saved-off) parameters back to ARGV and then start a second
while(<>) loop. If I just "last" out of the first loop and reassign
@ARGV, it finished processing the file it was in the middle of.
Is there a way to reset the <> without forcing the failure by closing
it first?
Hunter
(logs) for some additional information (finding a person's numeric ID
by the name passed in) and then pull the records from the logs
matching that additional information. This can include records
earlier in the file than the record that let me match up the name to
the ID.
What I've done is close(ARGV) so that my first while(<>) fails, assign
the (saved-off) parameters back to ARGV and then start a second
while(<>) loop. If I just "last" out of the first loop and reassign
@ARGV, it finished processing the file it was in the middle of.
Is there a way to reset the <> without forcing the failure by closing
it first?
Hunter