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
> 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
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
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
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
> 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
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
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
>
>
>
> 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: $!";
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
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
> 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
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
13 matches
Mail list logo