On Tue, Jul 7, 2009 at 02:25, Alpesh Naik<naik.alp...@gmail.com> 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........
>
>
> Regards,
> Alpesh.
>

It sounds like you want [in-place editing][0].  You may also want to
look at the [Tie::File][1] module.
e

[0] : http://perldoc.perl.org/perlrun.html#*-i*[_extension_]
[1] : http://perldoc.perl.org/Tie/File.html

-- 
Chas. Owens
wonkden.net
The most important skill a programmer can have is the ability to read.

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to