"Close your eyes and pretend it's all a bad dream. That's how I get by."
During that scene Jack is negotiating with Beckett about Davy Jones' heart. Jack wanted it to repay a debt but now he wants it to keep it. Beckett on the other hand is using it as leverage to get information out of Jack.
This quote really connects with me because Jack Sparrow doesn't care all that much about the bad things in his life. If something bad did happen to him then he would make the situation as humorous as he possibly could. I think that's a great way to live life.
I remember watching the movie, hearing that and then applying it to my life. I still recall when I lost my dog and I cried a lot. It was late and we still hadn't found her. I went to sleep and I pretended like it was a bad dream. In the morning someone returned her and I felt really happy.