Keep It Simple, Stupid | |
PerlMonks |
Re: Re: Efficiency: Finding if a file contains a paragraphby C_T (Scribe) |
on Jun 02, 2004 at 16:08 UTC ( [id://359533]=note: print w/replies, xml ) | Need Help?? |
>Are any of your files huge?
No, there are just a lot of them. >Are any of your paragraphs huge? No. >Are your paragraphs delineated with a single blank line? Yes. >Are you looking for an exact paragraph match (eg exact spaces, punctuation, and newlines)? Yes. Basically I'm writing configuration paragraphs into configuration files. IF the paragraph already exists (a distinct possibility) I don't want to re-write it, but if it doesn't I want to add it. CT
Charles Thomas Madison, WI
In Section
Seekers of Perl Wisdom
|
|