eversuhoshin has asked for the wisdom of the Perl Monks concerning the following question:
Hello dear monks,
It's raining and my head is dead. I have a text file that contains SEC filings information with dates.
For each year, I want to create a separate text file
For instance if the year is 1996 then I want to have a new separate text file that only contains SEC filings information for the year 1996Is there an efficient way for me to do that instead of opening 10 file handles and using a bunch of if statements like if(year==1996) print $_ FILE;
.Thank you for your time and consideration
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Help with splitting one text file into other text files
by moritz (Cardinal) on Mar 30, 2011 at 15:30 UTC | |
by Fletch (Bishop) on Mar 30, 2011 at 15:35 UTC | |
by Anonymous Monk on Mar 30, 2011 at 15:43 UTC | |
Re: Help with splitting one text file into other text files
by BrowserUk (Patriarch) on Mar 30, 2011 at 15:33 UTC | |
Re: Help with splitting one text file into other text files
by JavaFan (Canon) on Mar 30, 2011 at 15:50 UTC | |
by davido (Cardinal) on Mar 30, 2011 at 17:31 UTC |
Back to
Seekers of Perl Wisdom