RE: How to replace a long string in a text file?

2003-08-14 Thread Bob Showalter
perlwannabe wrote: > Now that I have, with all of you helping, dealt with the unlink problem. > I am now faced with a new problem. > > I have a file, myfile.txt, that consists of various text items that are > repetitive. I am trying to replace many of the repetitive items with a > place holder. H

Re: How to replace a long string in a text file?

2003-08-14 Thread Tor Hildrum
perlwannabe wrote: Now that I have, with all of you helping, dealt with the unlink problem. I am now faced with a new problem. I have a file, myfile.txt, that consists of various text items that are repetitive. I am trying to replace many of the repetitive items with a place holder. Here is an e

Re: How to replace a long string in a text file?

2003-08-14 Thread zentara
On Tue, 12 Aug 2003 01:29:39 -0400 (EDT), [EMAIL PROTECTED] (Perlwannabe) wrote: >Here is the little script that I am working with and, obviously, is not >working: > >my $filefirst = "c:/perl/myfile.txt"; >open(FILE,"<$filefirst") || die "Could not open file for reading! $!"; >open(TEMP,">$filefi

How to replace a long string in a text file?

2003-08-12 Thread perlwannabe
Now that I have, with all of you helping, dealt with the unlink problem. I am now faced with a new problem. I have a file, myfile.txt, that consists of various text items that are repetitive. I am trying to replace many of the repetitive items with a place holder. Here is an example of myfile.tx