On Fri, Nov 07, 2008 at 05:11:24PM +0000, Jérôme Etévé wrote: > > Are you using the CGI version of Mason ? > > According to > http://www.masonhq.com/docs/manual/ApacheHandler.html , > > prepare_request returns a Apache status code if something goes wrong > (I imagine it being a 404 in your case), and so you cannot call the > method 'exec' on the scalar value '404' . > > Here's the recommended usage from the mason doc: > > my $req = $ah->prepare_request($r); > # $req must be an Apache status code if it's not an object > return $req unless ref($req); > > return DECLINED > unless $req->request_comp->source_file =~ /\.html$/; > > $req->exec;
Thanks for pointing me in the right direction! -- http://www.critikart.net ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users