when i try to insert shell command on my perl script, my shell command doesnt work..
in this case, i would try to remove ^M character in temp.txt with command "tr -d \\r < temp.txt > temp1.txt"
i put this script on my perl script
$cmd = "/usr/bin/tr -d \\r < temp.txt > temp1.txt";
system $cmd;
but it doesnt work... 'coz there were still ^M character in temp1.txt
besides,when i execute "tr -d \\r < temp.txt > temp1.txt" in shell,it works....
the ^M character in temp1.txt is gone...
can you help me...?
thanks before