A California doctor charged in the overdose death of "Friends" star Matthew Perry has agreed to plead guilty to four counts of illegal distribution of the drug ketamine, according to a court filing on Monday.