Hi, I with to delete quote (" in a text file like below :
1243| "ABC" | test |
I tried to use s///, tr /// but failed to do it. Below is my script:
#usr/bin/perl
open(INFILE, "<client.txt" || die "can't open file;
while (<INFILE> ) {
open(OUTFILE, ">client.txt" || die "can't open file;
tr/"//d;
}
close (INFILE);
close (OUTFILE);
---------------------------------------------
Above script delete all the client.txt, may i know what's wrong with my script ?
Thanks for ur help !!!!!!
1243| "ABC" | test |
I tried to use s///, tr /// but failed to do it. Below is my script:
#usr/bin/perl
open(INFILE, "<client.txt" || die "can't open file;
while (<INFILE> ) {
open(OUTFILE, ">client.txt" || die "can't open file;
tr/"//d;
}
close (INFILE);
close (OUTFILE);
---------------------------------------------
Above script delete all the client.txt, may i know what's wrong with my script ?
Thanks for ur help !!!!!!