Personal tools
You are here: Home Documentation How-tos

Perl Examples

Document Actions
How to utilize MapScript in Perl.

Error Handling

The Perl mapscript module does not have an exception mechanism. Errors are best handled in the classic style by evaluating the return value of a function in a true/false context:

my $map = new mapscript\:\:mapObj('boundary.map') 
    or die('Unable to open mapfile.');

This How-to applies to: MapServer 4.4, MapServer 4.6

by Howard Butler last modified 2005-12-12 14:00
Contributors: Sean Gillies

Powered by Plone