http://www.perlmonks.org?node_id=524584


in reply to general polygon clipper examples

You can find a working example in the test.pl which comes with the CPAN module. It shows the construction of a polygon with holes and how to do INTERSECT, UNION, and DIFFERENCE.