in reply to gathering of some elements of a list
Your code, as presented, isn't working for me.
For one thing, $file isn't defined (should it be "ALL_FT"?). You should really use strict and warnings all the time in your programs, to catch these types of errors.
Secondly, you appear to be looking for the string "REGULATION ALERTS", but it doesn't appear in your input file. Hence, the entire block beginning with if (/REGULATION ALERTS/..eof(INFILE)){ is never getting executed.
Thirdly, I'm not sure exactly what you want for output. It might be more helpful if you could show an example of the exact output you're looking for. That way, we'll have a target to aim for.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: gathering of some elements of a list
by steph_bow (Pilgrim) on Jul 30, 2007 at 14:17 UTC | |
by liverpole (Monsignor) on Jul 30, 2007 at 14:28 UTC | |
by steph_bow (Pilgrim) on Jul 30, 2007 at 14:34 UTC | |
by liverpole (Monsignor) on Jul 30, 2007 at 17:16 UTC |