I have a csv file that is something like:
"data1"|"data2"|"data3"|"data4"| etc etc
I am opening the file, reading it in and then trying to get rid of al the " marks but to no avail. The output looks the same as the input
Any suggestions most welcome, the code I have at the mo is:
So how do I get rid of them damed " marks??????
Cheers all,
M.
"data1"|"data2"|"data3"|"data4"| etc etc
I am opening the file, reading it in and then trying to get rid of al the " marks but to no avail. The output looks the same as the input

Any suggestions most welcome, the code I have at the mo is:
Code:
open(INPUT, $file) || die("Could not open input file!");
open(OUTPUT, '>'.$output) || die("Could not open output file!");
while(<INPUT>)
{
$_=~s/\"//;
print OUTPUT $_;
}
So how do I get rid of them damed " marks??????
Cheers all,
M.