NAME
Apache::TrapSubRequest - Trap a lookup_file/lookup_uri into a scalar
VERSION
Version 0.01
SYNOPSIS
# ...
use Apache::TrapSubRequest ();
sub handler {
my $r = shift;
my $subr = $r->lookup_uri('/foo');
my $data;
$subr->run_trapped(\$data);
# ...
Apache::OK;
}
WARNING
This software requires that the Apache API function ap_save_brigade
be exposed as Apache::Filter::save_brigade
with the parameters ($f, $newbb, $bb, $pool). As of this writing (2005-02-11), this functionality is not present in the core mod_perl 2.x distribution.
FUNCTIONS
run_trapped (\$data);
Run the output of a subrequest into a scalar reference.
AUTHOR
dorian taylor, <dorian@cpan.org>
BUGS
Please report any bugs or feature requests to bug-apache-trapsubrequest@rt.cpan.org
, or through the web interface at http://rt.cpan.org. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
ACKNOWLEDGEMENTS
COPYRIGHT & LICENSE
Copyright 2005 dorian taylor, All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.