in reply to Trying to use ESRI shapefiles

You didn't provide enough code to tell what the problem would be. Did you give $polygon->points() what it was expecting?

...roboticus