|
|
| Think about Loose Coupling | |
| PerlMonks |
Help with splitting one text file into other text filesby eversuhoshin (Sexton) |
| on Mar 30, 2011 at 15:24 UTC ( #896440=perlquestion: print w/ replies, xml ) | Need Help?? |
|
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
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||