KUALA LUMPUR - Malaysian opposition leader Anwar Ibrahim was sworn in as prime minister Thursday after the palace named the former deputy prime minister the country's new leader following Saturday's general election that resulted in a hung parliament.