Here's what it means:
* "The world may be your oyster": This is a common saying that means you have a lot of opportunities and possibilities open to you. The world is full of potential, just like an oyster is full of potential pearls.
* "But you have to get the pearl": This part emphasizes that opportunities don't just magically come to you. You have to actively seek them out, work hard, and be persistent to achieve your goals and find the "pearls" of success.
In short, the phrase means that while there are plenty of opportunities in life, you need to put in the effort and work to take advantage of them and achieve success.