On Thu, 2 Dec 2004 21:45:28 +0530, Chandu B S <[EMAIL PROTECTED]> wrote:

hi experts

I am no experts, but I guess:

but i don't want to use 2 file ,
can i do this within the original file

Yeah just use FD only

open FD , "< /home/file1 " or die " Can't open file1 file : $!";
 while(<FD>)
 {
        print FD $_ unless ($_=~/perl/);
 }
close FD;


-- Regards, Edward WIJAYA SINGAPORE

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to