Credit: Steve Granitz/WireImage

Addiction is no laughing matter.

Friends' star Matthew Perry told TMZ he's planning on "going away" to focus on staying sober.

The 41-year-old actor struggled with substance abuse in the past, checking into rehab for a prescription pill addiction in 1997 and again in 2001. Though Perry has not relapsed, he is "taking proactive measures" to ensure his sobriety.

He told the site in a statement: "I'm making plans to go away for a month to focus on my sobriety and to continue my life in recovery. Please enjoy making fun of me on the world wide web."

Perry is currently starring in the ABC comedy series Mr. Sunshine.