As of 3.6.4 the syntax for creating a new object has changed: Deprecated: my $map = new mapObj("my.map"); Correct: my $map = new mapscript::mapObj("my.map");