Matthew Perry has spent the last three months in hospital after having surgery to repair a gastrointestinal perforation.

The 49-year-old Friends star, who played Chandler Bing on the popular NBC television sitcom, revealed he has spent most of the summer in hospital following surgery to repair a ruptured bowel.

Taking to Twitter on Friday, Perry wrote: "Three months in a hospital bed. Check."

Fans shared their concerns and well wishes in the replies, with one fan noting that it was his first tweet sent since March.

Last month, a representative  said he under went an operation in Los Angeles and was "grateful for the concern and asks for continued privacy as he heals".

A statement released to People read: "Matthew Perry recently underwent surgery in a Los Angeles hospital to repair a gastrointestinal perforation.

"He is grateful for the concern and asks for continued privacy as he heals."

Gastrointestinal perforation can occur along any point in the wall of the gastrointestinal tract, including the oesophagus, stomach, small intestine, and large intestine.

Symptoms include severe abdominal pain and emergency surgery is usually required.

Perry has been open about his health struggles in the past, including his battles with alcohol and substance abuse.