All rise for rice: Make a perfect pot in a saucepan, Instant Pot or automatic cooker

Paneer biryani, studded with Indian cheese cubes, carrots and green pepper, is made in a Dutch oven on the stovetop. Long-grain basmati rice is used in this biryani. (Steve Mellon/Pittsburgh Post-Gazette/TNS)

Coconut rice photographed on Friday, May 8, 2020, in Oakmont. There's a double dose of coconut in this rice. The rice is first cooked in coconut milk, along with green peas, and then flavored with grated coconut, mustard seeds, white lentils and fennel seeds. It is finished with a sprinkling of fried onions. (Andrew Rush/Pittsburgh Post-Gazette/TNS)

Cooking rice is not rocket science and requires little effort. But cooking it perfectly requires some basic rules and common sense.