On Mon, 22 Nov 2004, FlashMX wrote:

> I need to open an external file, search for a hook like "start here" 
> insert a line of code then keep searching until I find another hook 
> called "end" then insert another line of code.
> 
> Keep ripping the file by searching for "start"..."end" insterting the 
> start code and end code until the end of file is found. Then write the 
> file out with the changes.
> 
> Can this be done?

Yes.

> If so, how?

Write a program.

I bet Perl can do it!

Give it a try and let us know how it works out for you.

If you're looking for someone to write it for you, I'm sure some of the 
people on this list would be willing to write it for a reasonable fee. 
If you're trying to save some money, maybe you should try writing it by 
yourself before turning to others for help.


-- 
Chris Devers

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to