> From: Don Seiler [mailto:[EMAIL PROTECTED]] > > Basically, when I get to a new group number. The record set > is ordered by > group number, so all records in a group are together. As I'm looping > through records in a group, I do some evaluation and add values to > variables. When I get to a new group number, I look at the > values. If > they meet my criteria I add the last group number to an array.
Print all the records in a group to a temp file (IO::File::new_tmpfile), then if it meets your criteria, seek to the beginning of the file and use File::Copy to print it (copy it) to \*STDOUT or whereever your destination is. HTH, Douglas Wilson