AW: Edit text file using perl script

2009-07-07 Thread Thomas Bätzler
Alpesh Naik wrote: > Hi Thomas, > and thanks for the reply, > > Given below is my code, > > #!/usr/bin/perl #!/usr/bin/perl -w => You should always enable warnings. > use strict; > > print "Content-type:text/html\n\n"; > use CGI; > my $query = new CGI; => If you're using CGI, then you should

AW: Edit text file using perl script

2009-07-06 Thread Thomas Bätzler
Alpesh Naik asked: > I am trying to edit the text file using perl script. > i want to replace a particular text of file with new text. > > but the problem is that the new text appeared at end of file; > > How can i solve this problem, > pls. help We can help you much better if we can a

Re: Edit text file using perl script

2009-07-06 Thread Chas. Owens
On Tue, Jul 7, 2009 at 02:25, Alpesh Naik wrote: > Hi all, > > I  am trying to edit the text file using perl script. > i want to replace a particular text of file with new text. > > but the problem is that the new text appeared at end of file; > > How can i solve this problem, > pls. help >

Edit text file using perl script

2009-07-06 Thread Alpesh Naik
Hi all, I am trying to edit the text file using perl script. i want to replace a particular text of file with new text. but the problem is that the new text appeared at end of file; How can i solve this problem, pls. help Regards, Alpesh.