in reply to Mason newbe question

There's no location for the uri you're requesting, you'll have to add something like
<Location /gallery> SetHandler perl-script PerlHandler What::Ever </Location>
Note: watch out for trailing slashes. Already a few times I've created a location like /gallery/ and wondered why http://server/gallery doesn't work.