How do you find the perimeter of an irregular shape using Pythagorean theorem?

As far as I know, unless you can transform the figure into a series of right triangles, you can't.