|
|
| Don't ask to ask, just ask | |
| PerlMonks |
Re: Text file filteringby dimmesdale (Friar) |
| on Jun 27, 2002 at 11:10 UTC ( [id://177723]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
If I understand your question right, something like this may do what you want:
I wouldn't suggest using that as anything but a starting point, though. There are regex options for changing the . operator to match \n's, and you may want to consider doing a line by line parse (and having boolean--i.e., flag--variables to tell you what section you're in). The last suggestion might be started like this:
Again, these are just quick things to get you started thinking; you may want to look at this site and search for regex, or look at the perlman pages for more information regarding them.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||