Warning: These wiki pages have not been edited in years and may well be out of date/inaccurate. We recommend that you use them as a starting point for further investigation, rather than gospel.
Here is a small script I'm using for syntax checking.
Just call it with "./ filename"

#! /usr/bin/perl -w
use strict;
use HTML::Mason;
my $interp = HTML::Mason::Interp->new(allow_globals => [ qw($r $m) ]);

my $file = shift;
eval {
die $@ if $@;