if you want to delete a line from the text. You have to do the below things.
Ex.
if the text file has user id as User1 and userlogin as User1. assume the datas in the text files are in tab separated.
if the test. txt has the value like below
User1 User1
open fi, "<test.txt" ;
while(<fi>)
{
$temp1=$_;
if ($temp1=~m/^(.*?)\t(.*?)\t (.*)/)
{
$temp1=~ s/$1$2$3//;
}
$temp1=~ s/([\n]+)//g;
}
Comment