A friend showed me a circle inside a square such that the diameter of the circle is equal to the side length of the square. The perimeter of the square is 8r. He then proceeded to take small squares of the corners of the original square, maintaining perimeter as 8r. As this continues the original square begins to appear like a circle, somehow making it seem like the perimeter of the circle is 8r, which I know isn't true.
What is the flaw in the method above to show that it the perimeter is not 8r?