编辑下述短文，使其语句通顺，流畅、准确无误。


下面是待编辑的短文：
“To be or not to be: that is a question.” said Hamlet. Shakespeare wrote this line in a play called Hamlet. Hamlet is a character who thinks too much, and he is not sure if he should be alive or dead. Shakespeare wrote a lot of plays, and many people still enjoy them today even though they were written hundreds of years ago.
Hamlet, a character who is plagued with indecisiveness, famously pondered the question, "To be or not to be," in Shakespeare's eponymous play. Despite being centuries old, Shakespeare's extensive corpus of theatrical works continues to captivate audiences to this day.