Perl Examples
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