C_T has asked for the wisdom of the Perl Monks concerning the following question:
open a file see if that file already contains the paragraph if not, write the paragraph to the file (append mode)
I can think of at least one way to do this, but I'm concerned because this is an operation I'll be performing tens of thousands of times. I want to make sure I'm doing this the best way possible so as not to slow my script down unnecessarily.
Since there are so many experts here who deeply understand the inner workings of the language and how to make it do things efficiently, I thought I'd bounce it off you before proceeding.
Thanks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Efficiency: Finding if a file contains a paragraph
by halley (Prior) on Jun 02, 2004 at 16:06 UTC | |
|
Re: Efficiency: Finding if a file contains a paragraph
by BrowserUk (Patriarch) on Jun 02, 2004 at 17:42 UTC | |
|
Re: Efficiency: Finding if a file contains a paragraph
by dave_the_m (Monsignor) on Jun 02, 2004 at 16:03 UTC | |
by C_T (Scribe) on Jun 02, 2004 at 16:08 UTC | |
by revdiablo (Prior) on Jun 02, 2004 at 20:03 UTC | |
|
Re: Efficiency: Finding if a file contains a paragraph
by TomDLux (Vicar) on Jun 03, 2004 at 01:30 UTC |