Re: mass-replacing large block of text

2004-01-02 Thread Andrew Gaffney
Dan Muey wrote: I don't understand why you include $split in the new file. The text I want to get replace is from and including that line to the end of the file. Because you said you want to replace the stuff after $split. And in your modified version it seemed like you were writing the data y

RE: mass-replacing large block of text

2004-01-02 Thread Dan Muey
> I don't understand why you include $split in the new file. > The text I want to get replace > is from and including that line to the end of the file. Because you said you want to replace the stuff after $split. And in your modified version it seemed like you were writing the data you split on

Re: mass-replacing large block of text

2003-12-30 Thread Andrew Gaffney
Charles K. Clarkson wrote: Andrew Gaffney <[EMAIL PROTECTED]> wrote: : : Dan Muey wrote: : >> Dan Muey wrote: : >>> Andrew Gaffney wrote: : >>> : : : How can I replace everything *after* that : particular line with a custom block of text? [emphasis added] [snip] : I don't un

RE: mass-replacing large block of text

2003-12-30 Thread Charles K. Clarkson
Andrew Gaffney <[EMAIL PROTECTED]> wrote: : : Dan Muey wrote: : >> Dan Muey wrote: : >>> Andrew Gaffney wrote: : >>> : : : How can I replace everything *after* that : particular line with a custom block of text? [emphasis added] [snip] : I don't understand why you include $s

Re: mass-replacing large block of text

2003-12-30 Thread Andrew Gaffney
Dan Muey wrote: Dan Muey wrote: I have ~97 HTML documents that I need to strip the footer (about 15 lines) from and replace with a different block of text. The footer is formatted differently in some of the HTML files, but they all start with the line: How can I replace everything after that

RE: mass-replacing large block of text

2003-12-30 Thread Dan Muey
> Dan Muey wrote: > >>I have ~97 HTML documents that I need to strip the footer > >>(about 15 lines) from and > >>replace with a different block of text. The footer is > >>formatted differently in some of the > >>HTML files, but they all start with the line: > >> > >> > >> > >>How can I replace

Re: mass-replacing large block of text

2003-12-30 Thread Andrew Gaffney
Dan Muey wrote: I have ~97 HTML documents that I need to strip the footer (about 15 lines) from and replace with a different block of text. The footer is formatted differently in some of the HTML files, but they all start with the line: How can I replace everything after that particular line

Re: mass-replacing large block of text

2003-12-30 Thread Andrew Gaffney
Charles K. Clarkson wrote: Dan Muey <[EMAIL PROTECTED]> wrote: : : Andrew Gaffney <[EMAIL PROTECTED]> wrote: : : > I have ~97 HTML documents that I need to strip the : > footer (about 15 lines) from and replace with a : > different block of text. The footer is formatted : > differently in some of

RE: mass-replacing large block of text

2003-12-30 Thread Kipp, James
> > > > How can I replace everything after that particular line with > a custom block of text? Thanks. > Maybe using tell() and truncate() on the file?, then an inline edit/insert. -- $file = 'yourfile'; open (FH, "+< $file") or die "can't edit $file: $!";

RE: mass-replacing large block of text

2003-12-30 Thread Charles K. Clarkson
Dan Muey <[EMAIL PROTECTED]> wrote: : : Andrew Gaffney <[EMAIL PROTECTED]> wrote: : : > I have ~97 HTML documents that I need to strip the : > footer (about 15 lines) from and replace with a : > different block of text. The footer is formatted : > differently in some of the HTML files, but they al

Re: mass-replacing large block of text

2003-12-30 Thread Randy W. Sims
On 12/30/2003 11:30 AM, Andrew Gaffney wrote: I have ~97 HTML documents that I need to strip the footer (about 15 lines) from and replace with a different block of text. The footer is formatted differently in some of the HTML files, but they all start with the line: How can I replace everythi

RE: mass-replacing large block of text

2003-12-30 Thread Dan Muey
> I have ~97 HTML documents that I need to strip the footer > (about 15 lines) from and > replace with a different block of text. The footer is > formatted differently in some of the > HTML files, but they all start with the line: > > > > How can I replace everything after that particular li

mass-replacing large block of text

2003-12-30 Thread Andrew Gaffney
I have ~97 HTML documents that I need to strip the footer (about 15 lines) from and replace with a different block of text. The footer is formatted differently in some of the HTML files, but they all start with the line: How can I replace everything after that particular line with a custom blo